vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Getting a HTTP/1.1 302 Moved Temporarily response even with Followredirect enabled.

Open amazingjoe opened this issue 4 years ago • 3 comments

  • REST Client Version: 0.24.4
  • VSCode Version: 1.52.1
  • OS Version: Windows 10 Home (64 bit)

Steps to Reproduce:

  1. POST https://script.google.com/macros/s/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/exec/?function=Test&column=2&value=12&key=keyname
  2. Click on Send Request

I get a response of 302 Moved Temporarily and I have verified that the Followredirect for 3xx is enabled in settings.

It does not seem like it is following the redirect.

I did notice when I go into the shell and run Curl it is being aliased by Invoke-WebRequest so perhaps the issue is my comp?

amazingjoe avatar Feb 04 '21 06:02 amazingjoe

@amazingjoe Have you found solution to this? I'm also facing this issue.

lockHrt avatar Sep 17 '21 14:09 lockHrt

Same problem here.

kekscode avatar Nov 16 '21 13:11 kekscode

You can use curl with this option, curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_MAXREDIRS, 1); curl_setopt($ch, CURLOPT_AUTOREFERER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

rikzagoldluck avatar Apr 23 '22 13:04 rikzagoldluck