Possible HttpURLConnection.setFollowRedirects bug?I

From: Wil Hadden (Sn0tters_at_yahoo.co.uk)
Date: 10/30/04


Date: 29 Oct 2004 16:14:12 -0700

Hi,

I have discovered a slightly obscure scenario that may cause a bug in
HttpURLConnection and I was wondering if anyone could confirm it.

With automatic redirection turned on, if I do a HTTP GET request, with
various cookies set and I recieve a 302 redirect, HttpURLConnection
will do the redirection but will not send on the cookies at the same
time.

I have confirmed that all browsers will send on the cookies. The net
result is that the server will usually process the redirect
differently due to the lack of cookies being sent to the new page.

I am using the lastest 1.4 JRE.

I may not be able to reply to this until Monday.

Wil



Relevant Pages

  • Re: Possible HttpURLConnection.setFollowRedirects bug?I
    ... >> HttpURLConnection and I was wondering if anyone could confirm it. ... >> will do the redirection but will not send on the cookies at the same ... >> I have confirmed that all browsers will send on the cookies. ... > basic HTTP Client. ...
    (comp.lang.java.programmer)
  • Fwd: [PHP] Cookies and sent headers
    ... [PHP] Cookies and sent headers ... the javascript code can definitely change to head ... Its not the problem of cookies. ... Its problem of redirection or the ...
    (php.general)
  • Re: Cookie Counts
    ... one of the sites that my servlet is redirecting to is ... public class DirectIt2Servlet extends HttpServlet ... cookies from your site will be set in the user's browser. ... redirection instead of a server redirect. ...
    (comp.lang.java.programmer)
  • Re: onClick="windows.location..." Fails after IE 6 Security Update on W/ME?
    ... Sometimes it's nice to know whether a user's browser supports cookies ... response from the server, which response is simply a "server has moved" ... does it really gain you anything to do that redirection to ...
    (comp.lang.javascript)
  • Re: onClick="windows.location..." Fails after IE 6 Security Update on W/ME?
    ... Sometimes it's nice to know whether a user's browser supports cookies ... response from the server, which response is simply a "server has moved" ... does it really gain you anything to do that redirection to ...
    (comp.lang.javascript)