08-19-07 06:19 AM
On 2007-08-18, joseph cook <joecook@gmail.com> wrote:
>
> I guess ifstream("http://www.url.com") is asking too much ?
Hehe, yeah, ifstream only works with files
You could just open a socket, connect to the http server and feed it a
custom-made HTTP request (just to get a grasp of the process), just
google for HTTP RFC (can't be bothered to look up the number right now).
However, in a real program, I would suggest using libcurl. It's a free
cross platform library for handling a number of network protocols (HTTP
among them), and it's extremely easy to use. Check it out.
--
John Tsiombikas (Nuclear / Mindlapse)
nuclear@siggraph.org
http://nuclear.demoscene.gr/
[ Post a follow-up to this message ]
|