From: Evan Klinger <[EMAIL PROTECTED]>
evan715> I sent an email a few days ago with no response. What is
evan715> happening is that I am only getting back HTTP headers and not
evan715> the actual content. I've attached the source code. Perhaps
evan715> someone can help - it'd be greatly appreciated.
The error is to do only one SSL_read() instead of looping aruond it
until you get to know you've reached the end.
What happens is that network reads will get you just one packet at a
time, most often (perhaps there's some socket option that can arrange
this, I dunno), and many web servers will send just the headers ni the
first TCP packet, and then send the document itself in one or more
consecutve packets. Thus, you need to loop.
--
Richard Levitte \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken \ S-168 35 BROMMA \ T: +46-8-26 52 47
Redakteur@Stacken \ SWEDEN \ or +46-709-50 36 10
Procurator Odiosus Ex Infernis -- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/
Software Engineer, Celo Communications: http://www.celocom.com/
Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]