Ive looked through the net and cant seem to find anything about get and send commands with c++
Do I have to make my own sockets for this or is there a library that can simplify this for me?
Printable View
Ive looked through the net and cant seem to find anything about get and send commands with c++
Do I have to make my own sockets for this or is there a library that can simplify this for me?
Is this what your looking for ?
Here is a tutorial on socket programming.Code:string command = "GET /index.html HTTP/1.1\r\nhost: www.google.com \r\n\r\n";
int x = send(socketfd, command.c_str(), command.length(), 0);
Look in the HTTP RFC. It can be found here: http://www.w3.org/Protocols/rfc2616/rfc2616.html