Boost logo

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:
> Hello,
>
> 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 ...).
>
> Thanks
>
>
> Hi,
> 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
http://www.boost.org/doc/libs/1_47_0/doc/html/boost_asio/example/iostreams/http_client.cpp

but on this example the line
s << "GET " << argv[2] << " 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

Phil


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