Thanks forums, sorted it using cpp-netlib from
http://github.com/mikhailberis/cpp-netlib

thanks for the info milot. xD

--------------------------------------------------
From: "Milot Mirdita" <m...@brutos.org>
Sent: Wednesday, June 30, 2010 5:19 PM
To: "Discussion of Half-Life Programming" <hlcoders@list.valvesoftware.com>
Subject: Re: [hlcoders] HTTP-Request?

> 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
>
> 

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to