关于SOCKET的问题
大家看看这样的socket中使用POST格式对不对?
...
char strPOST[4000];
memset(strPOST, 0x00, 4000);
...
strcpy(strPOST, "POST check.asp/makeLogin?agent HTTP/1.1\r\n");
strcat(strPOST, "Accept: */*\r\n");
strcat(strPOST, "Accept-Language: zh-cn\r\n");
strcat(strPOST, "User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; MSIE 6.01)\r\n");
strcat(strPOST, "Host: 172.28.118.12:80\r\n");
strcat(strPOST, "Content-Length: 1309568\r\n");
strcat(strPOST, "Content=<?xml version="1.0" encoding="UTF-8"?><user><type>1</type><notesId>abcc</notesId><loginName>54321</loginName></user>\r\n");
strcat(strPOST, "Connection: Keep-Alive\r\n");
strcat(strPOST, "\r\n");
...
send(s, strPOST, strlen(strPOST),0);
...