C++ HTTP Stack  0.10
Public 멤버 함수 | 모든 멤버 목록
CHttpClient 클래스 참조

HTTP 클라이언트 클래스 더 자세히 ...

Public 멤버 함수

 CHttpClient ()
 ~CHttpClient ()
bool DoGet (const char *pszUrl, std::string &strOutputContentType, std::string &strOutputBody)
 HTTP GET 명령을 실행한다.
bool DoGet (const char *pszUrl, const char *pszInputContentType, const char *pszInputBody, std::string &strOutputContentType, std::string &strOutputBody)
 HTTP GET 명령을 실행한다.
bool DoPost (const char *pszUrl, const char *pszInputContentType, const char *pszInputBody, std::string &strOutputContentType, std::string &strOutputBody)
 HTTP POST 명령을 실행한다.
bool DoPost (const char *pszUrl, HTTP_HEADER_LIST *pclsHeaderList, const char *pszInputContentType, const char *pszInputBody, int iInputBodyLen, std::string &strOutputContentType, std::string &strOutputBody)
 HTTP POST 명령을 실행한다.
bool DoSoap (const char *pszUrl, const char *pszSoapAction, const char *pszInputBody, std::string &strOutputBody)
 HTTP POST 기반으로 SOAP 명령을 실행한다.
bool DoSoap (const char *pszUrl, const char *pszSoapAction, const char *pszInputContentType, const char *pszInputBody, std::string &strOutputBody)
 HTTP POST 기반으로 SOAP 명령을 실행한다.
bool DoUpload (const char *pszUrl, const char *pszFilePath, const char *pszPostName, POST_NAME_VALUE_MAP &clsPostDataMap, std::string &strOutputContentType, std::string &strOutputBody)
 HTTP POST 명령으로 파일 업로드한다.
void SetUserAgent (const char *pszUserAgent)
 User-Agent 헤더에 저장할 문자열을 설정한다.
void SetRecvTimeout (int iRecvTimeout)
 HTTP 응답 메시지 수신 timeout 시간을 설정한다.
int GetStatusCode ()
 HTTP 응답 status code 를 리턴한다.

상세한 설명

HTTP 클라이언트 클래스

생성자 & 소멸자 문서화

CHttpClient::CHttpClient ( )
CHttpClient::~CHttpClient ( )

멤버 함수 문서화

bool CHttpClient::DoSoap ( const char *  pszUrl,
const char *  pszSoapAction,
const char *  pszInputBody,
std::string &  strOutputBody 
)

HTTP POST 기반으로 SOAP 명령을 실행한다.

매개변수
pszUrlHTTP URL (예:http://wsf.cdyne.com/WeatherWS/Weather.asmx)
pszSoapActionHTTP SOAPAction 헤더에 저장될 문자열 (예:http://ws.cdyne.com/WeatherWS/GetWeatherInformation)
pszInputBody전송 body
strOutputBody수신 body
반환값
성공하면 true 를 리턴하고 실패하면 false 를 리턴한다.
bool CHttpClient::DoSoap ( const char *  pszUrl,
const char *  pszSoapAction,
const char *  pszInputContentType,
const char *  pszInputBody,
std::string &  strOutputBody 
)

HTTP POST 기반으로 SOAP 명령을 실행한다.

매개변수
pszUrlHTTP URL (예:http://wsf.cdyne.com/WeatherWS/Weather.asmx)
pszSoapActionHTTP SOAPAction 헤더에 저장될 문자열 (예:http://ws.cdyne.com/WeatherWS/GetWeatherInformation)
pszInputContentTypeHTTP Content-Type
pszInputBody전송 body
strOutputBody수신 body
반환값
성공하면 true 를 리턴하고 실패하면 false 를 리턴한다.