http-status-code-302

Why would the browser cache assets (images, js, etc.) while GETting but re-request everything after a POST + 302 redirect?

We've got our ETags and expiry headers setup properly and when browsing around the site without posting it is really very snappy. However, after any POST (which is almost invariably followed with a 302) you can see the browser re-request all the images. Is there something that could be causing this? Is there a setting that handles thi...

How to tell Apache, in reverse proxy mode, to intercept or trap 302 responses from backend server and redirect internally without sending 302 response back to client?

Hi, Does anyone knows how to tell Apache, in reverse proxy mode, to intercept or trap 302 (or 30x) responses from backend server and redirect internally without sending 30x response back to client? Ultimately, the backend server the response is redirected to would not be accessible from the outside (or not listed in Apache conf). My si...

jQuery AJAX see redirect as status 200 not 302?

I am using jQuery and the jQuery.form plugin to submit my form (also using ASP.Net MVC). Problem is the user is in a section of the site that uses forms authentication and if their auth cookie expires during their time on the page instead of getting back a status of 302, which would be the redirect to the login page, I still get 200? ...

Can I send a HTTP redirect to a url with an anchor?

Is it possible to send a response with 302 status code to a url like this: http://mysite.com/something/#somethingelse ...

Redirect to new page w/ POST data (PHP/Zend)

I'm trying to figure out how to redirect to a new page (different application, controller, action) and maintain the current POST data. My app is validating the POST data and if a certain criteria is met, I want to redirect to a different location, but make sure the POST data is passed as POST data to that new page. Here's a rough exampl...

How do i check for a 302 response? WebRequest

Using WebRequest i want to know if i get a "302 Moved Temporarily" response instead of automatically get the new url ...

http redirect: 301 vs. 302 (temporary vs. permanent)

Is the client supposed to behave differently? How? ...

Django: problem with Javascipt. Getting 302 and 404 error

I am trying to run WMDEditor in my Django site. I have installed WMD files in a directory called /static/js/wmd.wmd.js of the root of my website. However when the page get served I get: INFO 2009-09-08 11:00:48,217 dev_appserver.py:3034] "GET /static/js/wmd/wmd. js HTTP/1.1" 302 - INFO 2009-09-08 11:00:48,733 dev_appserver.py:3...

How do I deal with an occassional 302 HTTP error

I have read that 302 HTTP errors are not supposed to appear frequently even if you do receive one of them. the problem is they appear one out of 10 times in a page redirect in my script. Have you had any experiences with this before? I am using a PHP framework called Kohana. ...

jQuery ajax is throwing an error code 302... what is this?

Hi everyone! I'm working with ASP.NET MVC and jQuery and I have a UserControl that is repeated in every page. And in every page request, a ajax callback occurs... so far so good. But this is when I'm in localhost. When I publish the site, I notice that this ajax is throwing an error 302, but this only occus in HTTPS pages and in FF and...

Django, from php to Django

I have a website done with Django, that was previously done with PHP and CodeIgniter. I've moved the website to Webfaction, changed the DNS and all other configurations, but now my email is full of errors like this: Error (EXTERNAL IP): /index.php/main/leer/7497 I don't know why the Django app is looking for pages from the PHP app, sp...

Perform an action and redirecting to the same URL doesn't refresh the page

We are working on a new web site using Apache, Python and Django. In the development phase, no problem but once binding to Apache, using Firefox 3.5.3, we got a strange problem. We stand on : http://website.fr/search/ When we want to change the ordering of the research, we are sending the user to : http://website.fr/search/order/pri...

jQuery and AJAX response header

So I've got this jQuery AJAX call, and the response comes from the server in the form of a 302 redirect. I'd like to take this redirect and load it in an iframe, but when I try to view the header info with a javascript alert, it comes up null, even though firebug sees it correctly. Here's the code, if it'll help: $j.ajax({ type: 'PO...

php 301 redirects actually doing a 302 redirect

I have been googling for this but no one appears to have the answer. This post describes the problem well: http://www.mail-archive.com/[email protected]/msg198576.html Server is Windows 2008 FastCGI PHP 5 Anyone solved this problem? ...

What HTTP redirect status should I use to link offsite?

While randomly browsing my website via Google, I noticed that it was showing up remote redirects as local files. Now this can be both good and bad, but I'm wondering how can I fix this so it doesn't happen? I'm currently using PHP and header('Location: ... which sends a 302 redirect. Looking over the list of HTTP status codes, I'd take ...

Redirect with Curl/HttpClient: header "Location" missing.

Hi all, when I get the following url with curl curl -D headers.http "http://www.springerlink.com/index/10.1007/s00453-007-9157-8" the file headers.http contains a "Location" header: HTTP/1.1 302 Found Date: Tue, 27 Oct 2009 17:00:20 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET X-AspNet-Version: 2.0.50727 Location: http://www.s...

302 redirect and referrer information

i need to do a 302 redirect to a partner company domain. they want to track all of their incoming traffic. will my index.html 302'd page not pass referrer info? how do i configure this page to pass the referrer info, if not. ...

Rails redirect_to "www.somewebsite.com" with GET/POST parameters?

Hi, I'm trying to issue a redirect_to in one of my controllers to a fully qualified URL + I want to pass in some parameters In the controller for site A I do: redirect_to: "www.siteB.com/my_controller/my_action?my_parameter=123" Is there a nicer way to do this in rails? ...

how to parse a page that is going on 302 header??

i have to parse a page in php,the url of the page is going on 302 Moved temporarily header and is moved to a not found page.Its data can be retrieved manually through console option of firebug add on of mozilla.But if i try to parse it using php it gives me that not found page in return.How can i parse that page please suggest?? edit: i...

Java HttpURLConnection doesn't connect when I call connect()

Hello, I'm trying to write a program to do automated testing on my webapp. To accomplish this, I open up a connection using HttpURLConnection. One of the pages that I'm trying to test performs a 302 redirect. My test code looks like this : URL currentUrl = new URL(urlToSend); HttpURLConnection connection = (HttpURLConnection) curr...