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 Phil
On Mon, Jul 25, 2011 at 13:07, Kraus Philipp
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/ but 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
On 2011-07-25 14:34:55 +0200, Klaim - Joël Lamotte said:
On Mon, Jul 25, 2011 at 13:07, Kraus Philipp
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/ but 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/h... 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
participants (3)
-
Klaim - Joël Lamotte
-
Kraus Philipp
-
Philipp Kraus