hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randy Paries" <randy.par...@unitnet.com>
Subject trying to submit form
Date Wed, 19 Jan 2005 17:39:07 GMT
I have a Apache-Commons Httpclient application.

In order to get the page I need , I need  to authenticate.
That seems to work ok, but after that when I go to the page needed , I get a
login screen instead of the page

Below is the output of a sniffer i used
#1 here is the get from the web browser that works
You can see that #2 is a success

#3 is from Httpclient 
#4 is the redirect back to the login page.

The one thing that looks suspicious to me is the cookies. They are different
and not sure why

Any ideas/ insights?

Thanks for any help

=============================Good one - done from a web
#1  09:59:01.828    
GET /Reports/ViewReport.aspx?ReportName=UnitBirthdays&lndscp=false HTTP/1.1
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR
Host: applications.food.com
Connection: Keep-Alive
Cookie: TLTUID=B44DF90242F2ECF6428BBA90D94A976E; subsidiary=US;
culture=en-US; uiculture=en-US; TLTSID=479F007A4DC9C0121FA526A08F35F928z0;
TLTHID=479F007A4DC9C0121FA526A08F35F928; LDAPInformation=N32AS2|Sue|land;
Consultant=N32AS2; .ASPXAUTH=LOTSOFSTUFF; MKRules=67574956.20480.0000;

#2  09:59:04.687  
HTTP/1.1 200 OK
Set-Cookie: MKRules=67574956.20480.0000; path=/
Date: Wed, 19 Jan 2005 15:58:58 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 14212

=============================Bad one - done from Httpclient
#3  11:17:09.343 
GET /Reports/ViewReport.aspx?ReportName=UnitBirthdays&lndscp=false HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Connection: Keep-Alive
Accept: */*
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Host: applications.food.com
Cookie: subsidiary=US
Cookie: ASP.NET_SessionId=mgznuz2enxu1bnnk414dap55
Cookie: LDAPInformation=N32AS2|Sue|land
Cookie: Consultant=N32AS2
Cookie: MKRules=67574956.20480.0000
Cookie: TLTSID=E85A996F4438CA0A4E25E09E94701D14z0
Cookie: TLTHID=E85A996F4438CA0A4E25E09E94701D14
Cookie: TLTUID=E85A996F4438CA0A4E25E09E94701D14

#4 11:17:11.953 
HTTP/1.1 302 Found
Set-Cookie: MKRules=67574956.20480.0000; path=/
Cache-Control: private
Date: Wed, 19 Jan 2005 17:17:03 GMT
Content-Length: 265


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

View raw message