char* proxy="xxx.xxx.xxx.xxx"; // I use the real number
char* port="8080";
SOCKET hSocket=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
sockaddr_in sockAddr;
sockAddr.sin_family=AF_INET;
sockAddr.sin_port=htons(atoi(port));
sockAddr.sin_addr.S_un.S_addr=inet_addr(proxy);
connect(hSocket,(sockaddr*)(&sockAddr),sizeof(sockAddr));
char* request="GET http://www.useractive.net/proxy/azenv.php HTTP/1.1\r\n\r\n";
send(hSocket,request,strlen(request),0);
do{
recv(hSocket,buffer,bufferlen,0);
...
}while(...);
I check for errors (which I omitted here) and all is well. Maybe you can spot something ?
Thanks






