http-status-code-302

Httpclient 4, error 302. How to redirect??

I want to access one site that first requires an (tomcat server) authentication and then log in with a POST request and keep that user to see the site's pages. I use Httpclient 4.0.1 The first authentication works fine but not the logon that always complains about this error: "302 Moved Temporarily" I keep cookies & I keep a context an...

phantom 302 causing AJAX errors

I have a page that makes multiple AJAX calls to a generic handler page. 9 times out of 10, every AJAX call completes with a 200 ok. However, that one time out of 10, one of those AJAX calls comes back as a 302 Found. I know that 302s themselves are not errors, but on this page every time a 302 comes back, it causes the AJAX call to er...

Redirect Status Code 302 between Tomcat and IIS 7.0 is not properly handled by the isapi redirector

We recently installed a web application under Tomcat 6 which is connected over the isapi redirector interface (see http://tomcat.apache.org/connectors-doc/webserver_howto/iis.html) to an IIS 7 server. The connector works properly in every case, except for some pages in the web application that return a status 302, with a new location to ...

Does IE still hand over a PDF request to the acrobat plugin?

Hi, I need to redirect requests for PDFs to an html page that shows the requested pdf in a frame/iframe My fear is that some browsers (at least IE used to do this) will hand over the request to Acrobat reader. I can imagine that Acrobat will not be too happy with an html page instead of application/pdf Thanks for any information you m...

PHP Curl 302 authentication with cookies

I am trying to learn to use PHP curl and it seemed to go well until I have tried to authenticate to changeip.com. Here is the function I use to make a Curl call: function request($ch, $url, $params = array()) { $options = array ( CURLOPT_URL => $url, CURLOPT_USERAGENT => 'M...

Redirect after POST

I send POST request to the server, my login has a dot inside for ex:"Log.in", POST /api/users/Log.in/albums/ HTTP/1.1 Content-Type: application/atom+xml; charset=utf-8; type=entry Authorization: FimpToken realm="website.com", token="XXX" Host: website.com Content-Length: 255 ...data... Server respond: HTTP/1.1 302 FOUND Server: ngin...