Boost Users :
Subject: Re: [Boost-users] url encoding
From: Philipp Kraus (philipp.kraus_at_[hidden])
Date: 2011-07-25 13:34:04
On 2011-07-25 14:34:55 +0200, Klaim - Joël Lamotte said:
> On Mon, Jul 25, 2011 at 13:07, Kraus Philipp
> <philipp.kraus_at_[hidden]> wrote:
> does boost support any url encoding structures? I would like to
> transform a std::string with spaces and other chars to the correct url
> representation (space will be changed to %20 ...).
> I'm not sure there is something exactly like the structure you want in
> Boost.NetWork (wip, not reviewed yet)
> http://mikhailberis.github.com/cpp-netlib/%a0but maybe it will help?
> I glanced a few minutes but didn't find exactly what you need, I think
> maybe there is an internal type that does this.
> Joël Lamotte
Thanks for the link. I have checked the examples on Boost.ASIO eg
but on this example the line
s << "GET " << argv << " HTTP/1.0\r\n";
adds the url to the stream, but it seems the
boost::asio::ip::tcp::iostream create the url encoding, does it?
I don't find any information within the documentation
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