-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post cURL is recognized as a get request #790
Comments
@iafine nice catch, this will be published in the next releasee |
@iafine this has been fixed in the latest version 0.24.5 and you can verify it |
Unfortunately, it doesn’t seem to work in 0.24.5, but thank you anyway. You can find a post request on chrome and copy it as curl to an http file. In most cases, it will be recognized as get request. |
@iafine I can work with following request code snippet curl 'https://api.qlrc.com/Other/UserPageStatistics' \
-H 'Connection: keep-alive' \
-H 'sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'x-channel: xclient' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.146 Safari/537.36' \
-H 'Cache-Control: no-cache' \
-H 'Origin: chrome-extension://fboahkpeeonmlaonblpdjhcdjcegokbk' \
-H 'Sec-Fetch-Site: none' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Accept-Language: zh-CN,zh;q=0.9,en;q=0.8' \
--data-raw '{"pageTypeId":6070403}' \
--compressed Could you please confirm again that you've already upgrade to the latest version? |
I restarted vscode today and found that it works, thank you very much, very useful extension. |
Steps to Reproduce:
cURL Demo:
In Postman and shell , It is recognized as a post request, vscode-restclient is a get request, look like is --data-raw problem?
The text was updated successfully, but these errors were encountered: