C++ Make HTTP Request?
Posted: Fri Apr 11, 2008 5:22 pm
I've searched a ton for how to do this but couldn't find any definitive code examples. First of all I'd like to say I'm not much of a C++ guy. I only know some of the basics of the language. I was wondering if anyone could either point me to or give me any examples for sending off a HTTP (GET) request. I'm programming on Windows using Dev-C++ and I guess I want to use Winsock unless you have a better idea. This will be a console application.
So basically I guess I need to connect to a server, send it:
GET /path/file HTTP/1.1
Host: website.tld
Thanks in advance.
So basically I guess I need to connect to a server, send it:
GET /path/file HTTP/1.1
Host: website.tld
Thanks in advance.