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 Raja Pandian <r....@verchaska.com> on 2006/01/04 17:18:40 UTC
Re: problen in downloading page
hai Roland
The status code was 200. I get the initial part of the expected page.I
have given all the required parameters(checked with tools >> page info
>> forms in the browser).The source of expected page was about 20000
lines.I have not prepared the log files.
I have a look at the cookies created when requested through the browser
and requested from the application(using getCookies()).
The cookie created in browser
Cookiename : aaaa
Content : name=raja&age=20&cookie=enabled
The cookie generated when requested from application
Cookiename :
Content : name=&age=&cookie=enabled
(name,age are not form elements but they are alias for some of the form
elements)
A method of setting sessioncookies were hanled .
Please help me with a way to find out the cookie to be set for the
request. Is there any way to retrieve all the session informations.
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org
Re: problen in downloading page
Posted by Roland Weber <ht...@dubioso.net>.
Hello Raja,
> The status code was 200. I get the initial part of the expected page.
Then I suspect you are not reading correctly from the stream. The stream
reads only a part of the page on each call to read(...) and returns the
number of bytes read. You have to loop until you reach EOF. See here:
http://java.sun.com/j2se/1.4.2/docs/api/index.html
cheers,
Roland
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org