Questions tagged [http-status-code-307]

307 Temporary Redirect -- HTTP status code introduced in HTTP 1.1

Introduced in HTTP 1.1, the 307 status code was created to indicate a resource that has moved temporarily. This was supposed to have been handled by the 302 status code, but industry practice had 302 redirects changed to GET requests in contradiction to the standard set out in RFC 1945. Clients receiving a 307 response should repeat their request using the same method used for the initial request, so a POST request would be repeated with a POST request to the new location.

57 questions
2
votes
1 answer

c# 307 automatic temporary redirect problem

I need to set up a temporary automatic redirection of client requests from one server to another. From the server side: string url = Constants.UrlRedirect; Response.Headers.Add("Location", url); return…
N. Saw
  • 103
  • 2
  • 7
2
votes
1 answer

Does http 307 (temporary redirect) accepts cookie value revalidated at the server end?

I am invoking a POST request (say request A) from my browser. And I’m trying to do the following at my backend while redirecting the request, 1) Clear a cookie value 2) Set 307 header value and 3) Adding Location header with redirect url (say…
user7946343
2
votes
1 answer

HTTP 302, 303 or 307 for tracking image url

I'm trying to track whether specific emails we send out are opened and therefore use a hashed url for an image on every email I send out. Currently, when that url is requested, I log the fact that the email has been viewed (based on the hash in the…
Adam Nelson
  • 7,932
  • 11
  • 44
  • 64
1
vote
1 answer

HTTP headers difference (PHP)

Need some help understanding what the difference between these two redirects is: header( "HTTP/1.1 307 Temporary Redirect" ); header( "Location: http://www.someurl.com/" ); Or header( "Location: http://www.someurl.com/" ); What happens in the…
KungWaz
  • 1,918
  • 3
  • 36
  • 61
1
vote
1 answer

307 redirect in .htaccess is this correct?

I need to have many pages redirect temporarily to an old site via .htaccess as I migrate it. Do I just need to add this line for each 307 redirect to .htaccess? Redirect 307 /page_one https://www.oldsite.com/page_one My entire .htaccess would look…
1
vote
2 answers

Browser "remembers" a temporary redirect for a while. Can I prevent that?

My nginx website is protected by IP range and I need to be on the premises or log in via vpn to see it: geo $external_ip { 192.168.0.0/16 0; } … if ($external_ip) { return 302 https://www.different-site.com/info_explaining_to_log_in_via_vpn…
1
vote
2 answers

Java web service client generated in Netbeans - getting Http Status Code 307

I use Netbeans to generate web service client code, client-style JAX-WS, so i can invoke a web service API. However, when I invoke the web service API, I get the exception: com.sun.xml.internal.ws.client.ClientTransportException: The server sent…
1
vote
1 answer

File upload to third party API with HTTP 307 Temporary Redirect in Flask

I have a scenario where I have to upload a file from flask app to a third party API. I have wrapped all API requests in Flask to control API usage. For this I have redirected the traffic from main route towards the api wrapper route with http 307…
1
vote
2 answers

Azure web.config Permanent redirection and get 307 status code instead of 301

I'm trying to redirect all http traffic to https while returning 301 status code. For some reason, I get 307 status instead and I dont know why. I tried to search to see if I missed something in my config, but it's seem similar to everything I…
1
vote
1 answer

C# HttpClient 307 Destiny 2 SearchUser API

I am working on a library for the Destiny 2 API and I am running into a problem at this spot. I wrote an extension for the HttpClient.GetAsync so that I can do HttpClient.GetAsync and I am finding that in this extension I am not getting a success…
Bailey Miller
  • 1,376
  • 2
  • 20
  • 36
1
vote
1 answer

jersey adding a cookie and then doing a redirect

I am trying to set a cookie for the below domain and doing a 307 redirect. However, the the cookie doesnt seem to be getting set and is not present on subsequent requests from the browser. Anything that i am missing? import javax.ws.rs.*; import…
Prashanth
  • 501
  • 1
  • 4
  • 5
1
vote
0 answers

How to redirect (307 Temporary Redirect) with UrlRewriter?

i've created a rule using UrlRewriter to perform a redirect: The problem is that it is issuing a 301 Moved Permanantly redirect: POST /ResetClock.asp…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
1
vote
1 answer

SEO - Temporary unpublished pages - Which http status code to return?

In my CMS there are some pages that are temporary unpublished and later re-published. From a SEO perspective which is the best way to handle them. Tell the search engines to remove them, or that they are temporary moved? Not all pages are always…
0
votes
0 answers

Why is my .Net 6 API throwing a 302 on HTTP redirect rather than a 307, changing my POST to a GET?

I have one web API I essentially copied from another. Both have app.UseHttpsRedirection() as well as app.UseHSTS() in their Program.cs. Both have Swagger redirect working (this is a local internal test site). However, when I use Postman to try to…
0
votes
0 answers

Wordpress - Gravity Forms - 307 on POST

I have a gravity form in 2 steps. When going to the next step, in some countries, they get a 307 status back on the POST, so the next step doesn't load and you are stuck on a spinning wheel. In my country, this is not a problem. In the country where…
jens_vdp
  • 594
  • 1
  • 4
  • 18