From: Peter Sylvester <[EMAIL PROTECTED]>
Peter.Sylvester> >
Peter.Sylvester> > sprintf(szBuf,
Peter.Sylvester> > "POST %s HTTP/1.0\r\nContent-Type: %sContent-Length: %d\r\n",
Peter.Sylvester> > m_szURL, "text/html\r\n\r\n", nBytesToWrite);
Peter.Sylvester>
Peter.Sylvester> Due to the "text/html\r\n\r\n" the Content-length is already outside
the header
Peter.Sylvester>
Peter.Sylvester> > sprintf(szBuf,
Peter.Sylvester> > "POST %s HTTP/1.0\r\nContent-Length: %d\r\nContent-Type: %s",
Peter.Sylvester> > m_szURL, "text/html\r\n\r\n", nBytesToWrite);
The best is probably to make all line-ends part of the format string:
sprintf(szBuf,
"POST %s HTTP/1.0\r\nContent-Type: %s\r\nContent-Length:
%d\r\n\r\n",m_szURL, "text/html", nBytesToWrite);
--
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
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]