Small issue with system()
I have the following code
Code:
#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
int main()
{
system("telnet site.com 80");
system("GET /whatever.html HTTP/1.1");
return 0;
}
It connects but I cant get it to execute the...
Code:
system("GET /whatever.html HTTP/1.1");
part of the code until I end my telnet session.
So heres the questions, how do I make it connect and then send the GET request while it's still connected???
I looked around the forums and google and i couldnt find anything that really anwsered my question, this thing has been driving me crazy for days.