DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33641>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33641


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From [EMAIL PROTECTED]  2005-02-19 22:50 -------
(1) HttpClient IS NOT a browser

(2) THIS IS a circular redirect. See for yourself

[DEBUG] header - ->> "GET /shop/rapidreg.asp?id=97 HTTP/1.1[\r][\n]"
...
[DEBUG] header - -<< "HTTP/1.1 302 Object moved[\r][\n]"
[DEBUG] header - -<< "Location: default.asp?c=NOR&goto=/campaign/97[\r][\n]"
...
[DEBUG] header - ->> "GET /shop/default.asp?c=NOR&goto=/campaign/97
HTTP/1.1[\r][\n]"
...
[DEBUG] header - -<< "HTTP/1.1 301 Permanently Moved[\r][\n]"
[DEBUG] header - -<< "Location: rapidreg.asp?id=97[\r][\n]"
...
Exception in thread "main"
org.apache.commons.httpclient.CircularRedirectException: Circular redirect to
'http://www.mamut.com:80/shop/rapidreg.asp'

(3) The HTTP spec disallows relative redirect locations. Responses generated by
the site clearly violate the HTTP spec

If you do not want HttpClient to check for circular redirects, set
"http.protocol.allow-circular-redirects" parameter to true on the agent level

HttpClient client = new HttpClient();
client.getParams().setBooleanParameter(HttpClientParams.ALLOW_CIRCULAR_REDIRECTS,
true);
GetMethod httpget = new 
GetMethod("http://www.mamut.com/shop/rapidreg.asp?id=97";);
try {
  client.executeMethod(httpget);
  System.out.println(httpget.getStatusLine());
} finally {
  httpget.releaseConnection();
}

Oleg

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to