Boost logo

Boost Users :

Subject: Re: [Boost-users] asio HTTP client example always returns error 400
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2010-08-31 04:26:11


On Wed, Aug 25, 2010 at 1:34 AM, G S <stokestack_at_[hidden]> wrote:
> OK, well, it turns out that you have to have a slash in front of the
> name of the item you're trying to GET:
>
>               request_stream << "GET " << "/index.html" << " HTTP/1.0\r\n";
>
> Glad we had this time together...

Heh, yeah, standard http header stuff, most servers use a filesystem
type structure, as such they need a root slash.


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