I did this with cpp-netlib, which builds upon boost and boost.asio. cpp-netlib: http://github.com/mikhailberis/cpp-netlib You might get into some weird macro problems. Vgui does #define null 0L and boost.asio uses null somewhere.
To do a http request, do something like this: http::client client(http::client::follow_redirect); http::client::request request(url); http::client::response response = client.get(request); if (response.status() == 200) { std::ostringstream out; out << boost::network::body(response); } On 28.06.2010 23:47, Jonas 'Sortie' Termansen wrote: > Yeah, use an external library. Unless, that is, you want to get > throat-deep in the mysteries of TCP/IP socket programming, HTTP parsing, > and various other stuff. > > _______________________________________________ > To unsubscribe, edit your list preferences, or view the list archives, please visit: > http://list.valvesoftware.com/mailman/listinfo/hlcoders > > _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders