_nic
03.02.2010, 17:32
Примерно вот так
strcpy(head,"GET /?somelink");
strcat(head," HTTP/1.1\r\n");
strcat(head,"Host: somesite.info\r\n\r\n");
printf("%s",head);
send(s,head,strlen(head),0);
memset(head,NULL,1024*4);
//
recv(s,head,1024*4,0);
printf("%s",head);
getch();
все прокси плюются 502й ошибкой.Порт я указываю правильный,2жды перепроверял.Что я забыл? :confused:
strcpy(head,"GET /?somelink");
strcat(head," HTTP/1.1\r\n");
strcat(head,"Host: somesite.info\r\n\r\n");
printf("%s",head);
send(s,head,strlen(head),0);
memset(head,NULL,1024*4);
//
recv(s,head,1024*4,0);
printf("%s",head);
getch();
все прокси плюются 502й ошибкой.Порт я указываю правильный,2жды перепроверял.Что я забыл? :confused: