You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Thom Hehl <th...@nowhereatall.com> on 2005/09/08 15:55:37 UTC

Packet header posts differences (was cookie policy)

Finally, the smoking gun!

After weeks of desparation, I finally figured out to run TCPDUMP to 
record both the session from my browser which worked and the session 
from httpclient which did not work.

Here is the dump from the browser session:

09:23:35.718059 IP 10.0.0.251.35266 > gatorasp.hostgator.com.http: P 
1725:2339(614) ack 53536 win 16022 <nop,nop,timestamp 6567115 391849721>
E...~.@.@.5.
...C.6....P...'d.=...>..,.....
.d4..[&.GET /cgi-bin/listman/exec/admin.cgi?setup_options_edit=1 HTTP/1.1
Host: www.ohiohomelocator.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) 
Gecko/20050716 Firefox/1.0.6
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 

Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.ohiohomelocator.com/cgi-bin/listman/exec/admin.cgi
Cookie: id=bmedia; pw=solutions; listing_search=; listing_keyword=; 
listing_pagenum=1

and the dump from httpclient session:

09:38:21.209123 IP 10.0.0.251.35277 > gatorasp.hostgator.com.http: P 
220:547(327) ack 48877 win 16022 <nop,nop,timestamp 7452788 391938726>
E..{..@.@...
...C.6....P.<n.......>.. .....
.q.t.\..GET /cgi-bin/listman/exec/admin.cgi?setup_options_edit=1 HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/3.0-rc3
Host: www.ohiohomelocator.com
Cookie: $Version=0; id=bmedia
Cookie: $Version=0; pw=solutions
Cookie: $Version=0; listing_search=
Cookie: $Version=0; listing_keyword=
Cookie: $Version=0; listing_pagenum=1

How was this EVER supposed to work?

Now, how do I get the second dump to look like the first? Is it a 
setting I need to make, or is it time to go to the developer list?

Thanks.

-- 
"In every revolution, there is one man with a vision."--Jerome Bixby

Thom Hehl
<A href="www.heavyweightsoftware.com"> www.heavyweightsoftware.com</A>


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Re: Packet header posts differences (was cookie policy)

Posted by Roland Weber <RO...@de.ibm.com>.
Hi Tom,

look for a "single-cookie-header" setting in the parameters.
HTTP spec says that individual headers are equivalent to
a single header with commas, but not all servers know that.

hope that helps,
  Roland




Thom Hehl <th...@nowhereatall.com> 
08.09.2005 15:55
Please respond to
"HttpClient User Discussion"


To
HttpClient User Discussion <ht...@jakarta.apache.org>
cc

Subject
Packet header posts differences (was cookie policy)






Finally, the smoking gun!

After weeks of desparation, I finally figured out to run TCPDUMP to 
record both the session from my browser which worked and the session 
from httpclient which did not work.

Here is the dump from the browser session:

09:23:35.718059 IP 10.0.0.251.35266 > gatorasp.hostgator.com.http: P 
1725:2339(614) ack 53536 win 16022 <nop,nop,timestamp 6567115 391849721>
E...~.@.@.5.
...C.6....P...'d.=...>..,.....
.d4..[&.GET /cgi-bin/listman/exec/admin.cgi?setup_options_edit=1 HTTP/1.1
Host: www.ohiohomelocator.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) 
Gecko/20050716 Firefox/1.0.6
Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 


Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://www.ohiohomelocator.com/cgi-bin/listman/exec/admin.cgi
Cookie: id=bmedia; pw=solutions; listing_search=; listing_keyword=; 
listing_pagenum=1

and the dump from httpclient session:

09:38:21.209123 IP 10.0.0.251.35277 > gatorasp.hostgator.com.http: P 
220:547(327) ack 48877 win 16022 <nop,nop,timestamp 7452788 391938726>
E..{..@.@...
...C.6....P.<n.......>.. .....
.q.t.\..GET /cgi-bin/listman/exec/admin.cgi?setup_options_edit=1 HTTP/1.1
User-Agent: Jakarta Commons-HttpClient/3.0-rc3
Host: www.ohiohomelocator.com
Cookie: $Version=0; id=bmedia
Cookie: $Version=0; pw=solutions
Cookie: $Version=0; listing_search=
Cookie: $Version=0; listing_keyword=
Cookie: $Version=0; listing_pagenum=1

How was this EVER supposed to work?

Now, how do I get the second dump to look like the first? Is it a 
setting I need to make, or is it time to go to the developer list?

Thanks.

-- 
"In every revolution, there is one man with a vision."--Jerome Bixby

Thom Hehl
<A href="www.heavyweightsoftware.com"> www.heavyweightsoftware.com</A>


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org