$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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.