Hey,
Just wondering how i would go about connecting to a php file from a console based app.
Any ideas would be greatly appreciated.
Hey,
Just wondering how i would go about connecting to a php file from a console based app.
Any ideas would be greatly appreciated.
cant edit sorry for the double post
int main()
{
SOCKET s;
WSADATA wsadata;
SOCKADDR_IN target;
WSAStartup(0x0202, &wsadata);
target.sin_family = AF_INET;
target.sin_port = htons (80);
target.sin_addr.s_addr = inet_addr ("http://anonserver.org/rapid/submit.php?");
s = socket (AF_INET, SOCK_STREAM, IPPROTO_TCP);
connect(s, (SOCKADDR *)&target, sizeof(target));
sprintf(szBuffer, "u=?&p=?");
send(s, szBuffer, strlen(szBuffer), 0);
closesocket(s);
WSACleanup();
return 0;
}
not working :(
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.