Randy This is a common problem with badly written applications that expect all cookies to be put into one request header. If you are using HttpClient 3.0 simply set 'http.protocol.single-cookie-header' parameter to true
http://jakarta.apache.org/commons/httpclient/3.0/preference- api.html#HTTP%20method%20parameters Hope this helps Oleg On Wed, 2005-01-19 at 11:39 -0600, Randy Paries wrote: > Hello, > 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 > browser================================== > #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 > 1.1.4322) > 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; > ASP.NET_SessionId=akjjw255zmmovqfqd122ft55 > > #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: .ASPXAUTH=LOTSOFSTUFF > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
