Questions tagged [http-status-code-307]
307 Temporary Redirect -- HTTP status code introduced in HTTP 1.1
50
questions
3
votes
0
answers
89
views
Chrome redirects and makes 2 requests of the same page (307 Internal Redirect), how to prevent?
We have a page in php, that may take some time to load and the response time can be over 30 seconds, it has a heavy script and it is normal, not open to the public.
This page saves a log on our ...
1
vote
1
answer
85
views
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....
3
votes
1
answer
3k
views
Keep getting "307 Temporary Redirect" before returning status 200 hosted on FastAPI + uvicorn + Docker app - how to return status 200?
Edit:
I found the problem but not sure why this happens. Whenever I query: http://localhost:4001/hello/ with the "/" in the end - I get a proper 200 status response.
I do not understand why.
...
0
votes
1
answer
482
views
chrome keeps redirecting because of HSTS
I have implemented a simple static server like this in /etc/nginx/sites-available/default that will serve a bunch of files
server {
listen 80;
server_name www.x.app x.app;
root /usr/share/...
0
votes
1
answer
92
views
Wordpress is redirecting 302-307 in loop
I was setting up End-to-end Cloudflare for my VPS running Wordpress.
Having problem accessing wp-admin, loops in redirects.
By perusing google I have tried many things and it lead me to final point ...
0
votes
0
answers
60
views
Will Http redirect work without a browser?
We all know that the browser is responsible for redirecting the request once it receives the response status code 3xx.
But this time, I am sending a request from the back end code of the application ...
0
votes
0
answers
151
views
How to fix the UWP webview not handle the 307 temporary redirect
I'm trying to render a online page on UWP WebView, the page send a request to backend and will got a 307 error for temporary redirect to another url. But WebView won't handle the 307 redirection.
I ...
0
votes
1
answer
120
views
CKFinder modal opens homepage and does not show files
I am using CKFinder in a CodeIgniter project and the problem I have is that when I click to open the modal to upload new media the modal shows the homepage of my project and not the files in the ...
2
votes
1
answer
3k
views
python 3.7 urllib.request doesn't follow redirect URL
I'm using Python 3.7 with urllib.
All work fine but it seems not to athomatically redirect when it gets an http redirect request (307).
This is the error i get:
ERROR 2020-06-15 10:25:06,968 HTTP ...
8
votes
2
answers
7k
views
.NET Core 3.1 API - 307 Temporary Redirect
When upgrading my .NET Core 2.2 API to .NET Core 3.1, a lot of changes were required. I had to update the Swashbuckle package and change the Startup file. I now got it running in dev with Swagger.
...
1
vote
2
answers
428
views
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....
1
vote
0
answers
336
views
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 ...
2
votes
1
answer
3k
views
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);
...
1
vote
2
answers
864
views
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 ...
0
votes
1
answer
646
views
307 temporarily moved code when page loads in Chrome
I have run into a dilemma I cannot figure out. All my pages (currently being served on both localhost & a live server) redirect twice with a 307 header code until finally reaching the 200 success ...
2
votes
1
answer
3k
views
How to get around CORS error on a 307 redirect
I'm using a 307 redirect mod_rewrite rule in my .htaccess to redirect all /api/... requests to an apiHandler.php, and I'm having trouble with CORS.
My .htaccess
RewriteEngine On
RewriteRule ^api/(.*)...
1
vote
1
answer
439
views
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<T> and I am ...
0
votes
1
answer
585
views
WebServiceTransportException Temporary Redirect 307
I wrote soap client service using Java.
Also I used Spring WS.
When I send request via SoapUI I get response.
When I send request using client code, I get error
org.springframework.ws.client....
-1
votes
1
answer
1k
views
unable to scrape myntra API data using scrapy framework 307 redirect error
Below is the spider code:
import scrapy
class MyntraSpider(scrapy.Spider):
custom_settings = {
'HTTPCACHE_ENABLED': False,
'dont_redirect': True,
#'handle_httpstatus_list' ...
1
vote
1
answer
2k
views
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) ...
0
votes
1
answer
2k
views
response.sendRedirect shows unwanted HttpStatus 302 instead of 307
I have a small test, which should return a HttpStatus with Temporary Redirect with HttpStatus Code 307.
But it always returns a 302.
@RestController
@RequestMapping(value = "/")
public class ...
0
votes
1
answer
65
views
Does Jose4J handle an HTTP Status 307 (temporarily redirect)
I was wondering whether Jose4J handles the redirect http status codes (e.g. 307) when retrieving the JWKS from the OpenID Connect Endpoint.
I myself now do the retrieval and pass on the JWKS to ...
12
votes
1
answer
8k
views
Get the url of a redirect with Rest Assured?
I am making a GET request which then makes a 307 redirect to another URL and from there it makes another 302 redirect and so on till it gets to the requested page. I am having problems extracting the ...
4
votes
0
answers
1k
views
307 redirect with altered post data
I have a post request to script1.php that redirect with 307 status to script2.php a post request with the same data received in script1.php , my question is if it is possible to alter the post data in ...
0
votes
0
answers
556
views
307 Redirect in OAUTH2 in Python using Flask
I'm trying to manipulate the following code to issue a 307 redirect, instead of the default 302.
Code:
@app.route('/', methods=('GET', 'POST'))
def home():
if request.method == 'POST':
...
0
votes
2
answers
2k
views
Receiving Error Code 307 while running Jmeter scripts behind proxy
I have to conduct a PT on a mobile application.
The recording was done from personal laptop where we didn't face any problem.
However, when we transfer the PT scripts to the testing network, we are ...
-1
votes
1
answer
494
views
I get a http errorcode 307 when trying to load Youtube Data api?
I try to load the Youtube data API (by injecting it in my header section).
It used to work out perfectly, but suddenly I only gets 307 response codes (and no real content).
307 is temporary_redirect,...
0
votes
1
answer
238
views
refresh of a redirected http request
Consider this scenario:
a browser requests for a website and sends a request to a server (let's call it A).
A responds with a 307 redirect with some content on server B as the location.
Now the ...
0
votes
1
answer
199
views
Get JS script source when loading from 307 redirected source
Case is that:
My script inserts <script> in <head>, pointing to src1.
The back-end does 307 redirect from src1 to src2.
Script then loads src2.
But when I use this code, I'm getting src1....
3
votes
1
answer
3k
views
Adding headers to 307 redirection
Is it true that you cannot add/modified 307 header except Location? I'm trying to do that in Node.js and seems that newly added header 'X-Atlassian-Token': 'no-check' is not used by the client.
...
1
vote
1
answer
2k
views
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 ...
0
votes
0
answers
165
views
VS2012 Not able to connect to TFS
Suddenly my VS2012 failing to connect to TFS with the following error .
I have tried removing all entries from Credentials Manager, Restart PC, clearing browser cache, removing my user account frm ...
3
votes
0
answers
217
views
Facebook/Twitter/GooglePlus Sharing and 307 Redirects
On my site, when a user initially visits and they do not have an assigned session token, a 307 redirect them to a subdomain where the token is applied, and then brings them back to the page they were ...
0
votes
1
answer
1k
views
How to prevent Google from indexing redirect URL I do not own
A domainname that I do not own, is redirecting to my domain. I don´t know who owns it and why it is redirecting to my domain.
This domain however is showing up in Googles search results. When doing a ...
1
vote
0
answers
361
views
How to redirect (307 Temporary Redirect) with UrlRewriter?
i've created a rule using UrlRewriter to perform a redirect:
<rewriter>
<redirect url="~/ResetClock.ashx" to="~/ResetClock" />
</rewriter>
The problem is that it is issuing a ...
0
votes
1
answer
852
views
HTTP GET request with URLConnection is unable to access any page
I am working on Ubuntu 12.04. This is my simple code for implementing HTTP GET method using URLConnection.
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io....
0
votes
0
answers
231
views
302 or 307 Redirect? [duplicate]
From a programmatic point of view which is better 302 or 307 for the following? I am going to test two different urls for the same content. One URL is already indexed and I would like it to remain ...
19
votes
1
answer
15k
views
301 redirect vs 307 redirect
I am wondering about the difference between 301 and 307 redirects.
I am looking to generate backlinks through a home-brew url redirector, and I wish for any of the "link juice" or "page rank juice" ...
0
votes
1
answer
97
views
Does a server have to carry out an operation before redirection?
In Is HTTP 303 acceptable for other HTTP methods? we established that HTTP 303 can be used for other HTTP methods.
The Post/Redirect/Get pattern requires the server to carry out an operation before ...
0
votes
1
answer
137
views
What HTTP status codes should be used for URI canonicalization?
RESTful Web Services encourages the use of HTTP 303 to redirect clients to the canonical representation of a resource.
According to the book, HTTP 302 is was replaced by 303 ("See Other") and 307 ("...
1
vote
1
answer
612
views
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 ...
4
votes
1
answer
4k
views
HTTP 307 Redirects -- Supported By Most Browsers Since IE6?
So evidently in 2010, Matt Cutts at Google revealed in an interview, along with a follow-up email exchange after the interview, that Google deducts page rank if you use domain-to-domain HTTP status ...
19
votes
2
answers
31k
views
Avoiding 301 redirect caching
This is a follow up question to Using 301/303/307 redirects for dynamic short urls, where I try to determine the best method for implementing short url redirection when the destination url will change ...
6
votes
2
answers
5k
views
Using 301/303/307 redirects for dynamic short urls
We're implementing a short url service where the redirection target will be changing daily. The urls will be accessed by mobile devices and will always be GET requests. I'm trying to understand which ...
1
vote
1
answer
848
views
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: ...
1
vote
2
answers
7k
views
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....
2
votes
1
answer
2k
views
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 ...
0
votes
1
answer
949
views
MediaPlayer Redirect return http 307 on Android 2.2
I have an app using the MediaPlayer class... It has always worked on 1.6 and 2.1 devices, but since I have beentesting on a 2.2 device (and the emulator) I have noticed that it won't stream a mp3 file ...
7
votes
3
answers
3k
views
POST requests fail when <sessionState cookieless="AutoDetect" /> is set
Consider the following case:
A web server is running a .NET app with <sessionState cookieless="AutoDetect" />.
A client is POSTing data to it using a simple HttpWebRequest (no cookies).
This ...
11
votes
3
answers
10k
views
Return 307 Temporary Redirect in ASP.NET MVC
Is it possible to return a 307 Temporary Redirect from a controller in ASP.NET MVC?
I sometimes need to re-POST the values submitted from one form to another URI.
Using JavaScript to do the ...