hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 35376] New: - GetMethod URI case sensitive with http 302 status
Date Wed, 15 Jun 2005 18:20:42 GMT
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=35376>.
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=35376

           Summary: GetMethod URI case sensitive with http 302 status
           Product: HttpClient
           Version: 2.0.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Commons HttpClient
        AssignedTo: httpclient-dev@jakarta.apache.org
        ReportedBy: wenwei.xie@gmail.com


When set the uri as http://WWW.NETWORKSOLUTIONS.COM/ to GetMethod, when execute
the get method, it gets into an infinite loop because the redirect by http 302
code. Looks to me the uri is case sensitive. When I tried with
http://www.networksolutions.com/ (all lower case), it worked. Logging below:

2005/06/15 14:20:09:730 EDT [DEBUG] HttpMethodBase - Execute loop try 98
2005/06/15 14:20:09:730 EDT [DEBUG] HttpMethodBase - Opening the connection.
2005/06/15 14:20:09:740 EDT [DEBUG] header - >> "GET / HTTP/1.1[\r][\n]"
2005/06/15 14:20:09:740 EDT [DEBUG] HttpMethodBase - Request to add Host header
ignored: header already added
2005/06/15 14:20:09:740 EDT [DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/2.0.2[\r][\n]"
2005/06/15 14:20:09:740 EDT [DEBUG] header - >> "Host:
WWW.NETWORKSOLUTIONS.COM[\r][\n]"
2005/06/15 14:20:09:740 EDT [DEBUG] header - >> "[\r][\n]"
2005/06/15 14:20:09:750 EDT [DEBUG] header - << "HTTP/1.1 301 Moved
Permanently[\r][\n]"
2005/06/15 14:20:09:750 EDT [DEBUG] header - << "Server:
Netscape-Enterprise/6.0[\r][\n]"
2005/06/15 14:20:09:750 EDT [DEBUG] header - << "Date: Wed, 15 Jun 2005 18:20:08
GMT[\r][\n]"
2005/06/15 14:20:09:750 EDT [DEBUG] header - << "Location:
http://www.networksolutions.com/[\r][\n]"
2005/06/15 14:20:09:750 EDT [DEBUG] header - << "Connection: close[\r][\n]"
2005/06/15 14:20:09:750 EDT [DEBUG] HttpMethodBase - Redirect required
2005/06/15 14:20:09:750 EDT [DEBUG] HttpMethodBase - Redirect requested to
location 'http://www.networksolutions.com/'
2005/06/15 14:20:09:750 EDT [DEBUG] HttpMethodBase - Redirecting from
'http://WWW.NETWORKSOLUTIONS.COM:80/' to 'http://www.networksolutions.com/
2005/06/15 14:20:09:750 EDT [DEBUG] HttpMethodBase - Should close connection in
response to Connection: close

2005/06/15 14:20:09:750 EDT [DEBUG] HttpMethodBase - Execute loop try 99
2005/06/15 14:20:09:750 EDT [DEBUG] HttpMethodBase - Opening the connection.
2005/06/15 14:20:09:760 EDT [DEBUG] header - >> "GET / HTTP/1.1[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] HttpMethodBase - Request to add Host header
ignored: header already added
2005/06/15 14:20:09:760 EDT [DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/2.0.2[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] header - >> "Host:
WWW.NETWORKSOLUTIONS.COM[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] header - >> "[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] header - << "HTTP/1.1 301 Moved
Permanently[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] header - << "Server:
Netscape-Enterprise/6.0[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] header - << "Date: Wed, 15 Jun 2005 18:20:09
GMT[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] header - << "Location:
http://www.networksolutions.com/[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] header - << "Connection: close[\r][\n]"
2005/06/15 14:20:09:760 EDT [DEBUG] HttpMethodBase - Redirect required
2005/06/15 14:20:09:760 EDT [DEBUG] HttpMethodBase - Redirect requested to
location 'http://www.networksolutions.com/'
2005/06/15 14:20:09:770 EDT [DEBUG] HttpMethodBase - Redirecting from
'http://WWW.NETWORKSOLUTIONS.COM:80/' to 'http://www.networksolutions.com/
2005/06/15 14:20:09:770 EDT [DEBUG] HttpMethodBase - Should close connection in
response to Connection: close

2005/06/15 14:20:09:770 EDT [DEBUG] HttpMethodBase - Execute loop try 100
2005/06/15 14:20:09:770 EDT [DEBUG] HttpMethodBase - Opening the connection.
2005/06/15 14:20:09:780 EDT [DEBUG] header - >> "GET / HTTP/1.1[\r][\n]"
2005/06/15 14:20:09:780 EDT [DEBUG] HttpMethodBase - Request to add Host header
ignored: header already added
2005/06/15 14:20:09:780 EDT [DEBUG] header - >> "User-Agent: Jakarta
Commons-HttpClient/2.0.2[\r][\n]"
2005/06/15 14:20:09:780 EDT [DEBUG] header - >> "Host:
WWW.NETWORKSOLUTIONS.COM[\r][\n]"
2005/06/15 14:20:09:790 EDT [DEBUG] header - >> "[\r][\n]"
2005/06/15 14:20:09:790 EDT [DEBUG] header - << "HTTP/1.1 301 Moved
Permanently[\r][\n]"
2005/06/15 14:20:09:790 EDT [DEBUG] header - << "Server:
Netscape-Enterprise/6.0[\r][\n]"
2005/06/15 14:20:09:790 EDT [DEBUG] header - << "Date: Wed, 15 Jun 2005 18:20:09
GMT[\r][\n]"
2005/06/15 14:20:09:790 EDT [DEBUG] header - << "Location:
http://www.networksolutions.com/[\r][\n]"
2005/06/15 14:20:09:790 EDT [DEBUG] header - << "Connection: close[\r][\n]"
2005/06/15 14:20:09:790 EDT [DEBUG] HttpMethodBase - Redirect required
2005/06/15 14:20:09:790 EDT [DEBUG] HttpMethodBase - Redirect requested to
location 'http://www.networksolutions.com/'
2005/06/15 14:20:09:800 EDT [DEBUG] HttpMethodBase - Redirecting from
'http://WWW.NETWORKSOLUTIONS.COM:80/' to 'http://www.networksolutions.com/
2005/06/15 14:20:09:800 EDT [DEBUG] HttpMethodBase - Should close connection in
response to Connection: close

2005/06/15 14:20:09:800 EDT [ERROR] HttpMethodBase - Narrowly avoided an
infinite loop in execute

-- 
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: httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-dev-help@jakarta.apache.org


Mime
View raw message