Boost logo

Boost Users :

Subject: Re: [Boost-users] Asio HTTP Server
From: Stephan Menzel (stephan.menzel_at_[hidden])
Date: 2009-02-22 09:45:23


Am Donnerstag, 19. Februar 2009 15:37:18 schrieb Christoph Schreiber:
> Hi!
>
> I'm looking for a smart way to read HTTP-Post data. Is
> request_handler::handle_request the right place to do this? Or should I
> better to use connection::handle_read? Any ideas (or even better, examples)
> anybody? I'm stuck.

The Handler in this example state is not capable of doing do. You need to
expand the request_parser so it can read on after the header ended. It can be
done by reacting to a received content-length header and the reading on after
the CRLF. I just did that too ;-)

Stephan


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