|
Boost Users : |
From: Kurata Sayuri (magicalsayuri_at_[hidden])
Date: 2008-05-20 18:28:13
I found my mistake.
On Mon, May 19, 2008 at 1:16 AM, Kurata Sayuri <magicalsayuri_at_[hidden]> wrote:
> write( t, buffer( "CONNECT www.example.com:443 HTTP/1.0\r\n\r\n" ) );
> write( s, buffer( "GET / HTTP/1.0\r\n\r\n" ) );
These write()s send additional NUL terminator.
So I change my code like this.
---- const char request[] = "CONNECT www.example.com:443 HTTP/1.0\r\n\r\n"; write( t, buffer( request, sizeof request - 1 ) ); ---- It works fine.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net