You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by bu...@apache.org on 2005/02/12 10:28:28 UTC
DO NOT REPLY [Bug 33533] New: -
Cookies are missed on redirects withing same domain
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=33533>.
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=33533
Summary: Cookies are missed on redirects withing same domain
Product: HttpClient
Version: 3.0 Final
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: major
Priority: P2
Component: Commons HttpClient
AssignedTo: httpclient-dev@jakarta.apache.org
ReportedBy: eugenydzh@jdevelop.com
please take a look at http://www.mamut.com/shop/add.asp?pid=421 using any
browser - everything works fine, but the attached code (unit test) returns the
status 500 on this page.
Raw HTTP header data i got using the telnet for making HTTP connections:
telnet www.mamut.com 80
Trying 195.204.102.25...
Connected to mamut.com.
Escape character is '^]'.
GET http://www.mamut.com/shop/add.asp?pid=421 HTTP/1.0
HTTP/1.1 302 Object moved
Server: Microsoft-IIS/5.0
Date: Sat, 12 Feb 2005 08:46:19 GMT
p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
X-Powered-By: ASP.NET
Location: add_sa.asp?pid=421
Connection: Keep-Alive
Content-Length: 121
Content-Type: text/html
Expires: Sat, 12 Feb 2005 08:45:20 GMT
Set-Cookie: CountryISO=INT; path=/
Set-Cookie: testNewDesign=true; path=/
Set-Cookie: ASPSESSIONIDAQQTADAT=GOGPFBEBEBGAKFAKINOKPGHP; path=/
Cache-control: private
<head><title>Object moved</title></head>
<body><h1>Object Moved</h1>This object may be found <a HREF="">here</a>.</body>
Connection closed by foreign host.
telnet www.mamut.com 80
Trying 195.204.102.25...
Connected to mamut.com.
Escape character is '^]'.
GET http://www.mamut.com/shop/add_sa.asp?pid=421 HTTP/1.0
HTTP/1.1 500 Internal Server Error
Server: Microsoft-IIS/5.0
Date: Sat, 12 Feb 2005 08:47:04 GMT
p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"
X-Powered-By: ASP.NET
Connection: Keep-Alive
Content-Length: 313
Content-Type: text/html
Set-Cookie: testNewDesign=true; path=/
Set-Cookie: ASPSESSIONIDAQQTADAT=IAHPFBEBOCNEBAAKDKKBKGGD; path=/
Cache-control: private
<font face="Arial" size=2>
<p>Microsoft VBScript compilation </font> <font face="Arial" size=2>error
'800a0411'</font>
<p>
<font face="Arial" size=2>Name redefined</font>
<p>
<font face="Arial" size=2>/include/newdesign/btm.inc</font><font face="Arial"
size=2>, line 8</font>
<pre>dim sLegalNotice
----^</pre> Connection closed by foreign host.
As you can see, with redirect header at first time page sets the cookie
CountryISO, and if this cookie is missed when querying the redirect page - it
gives Error 500.
--
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