// CppSocket.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include <cstdlib>#include <string>#include <algorithm>#include <iostream>#include <fstream>#include <iterator>#include <Winsock2.h>using namespace std;#define MS_SOCKET 1#ifdef MS_SOCKET#define NULLCHAR #define userlog printf #endifint FindContentLength(string header);int RecvHttpHeader(int socket, string& header);int RecvHttpBody(int socket, string& body, int contentLength);long Post(const char * RemoteHostIP,int RemoteHostPort,const char *lpURL,const char *lpExtraHeaderInfo,string &strRecvBuf);int _tmain(int argc, char* argv[]) 相关文章: 2022-12-23 2021-08-12 2021-10-10 2022-01-20 2022-12-23 2022-12-23 2022-12-23 2022-12-23