|
|
@@ -16,7 +16,7 @@ public:
|
|
|
* @param strResponse 输出参数,返回的内容
|
|
|
* @return 返回是否Post成功
|
|
|
*/
|
|
|
- int Post(const std::string & strUrl, const std::string & strPost, std::string & strResponse, CZhipuziHttpProxy proxy = CZhipuziHttpProxy(), int timeout = 5);
|
|
|
+ int Post(const std::string & strUrl, const std::string & strPost, std::string & strResponse, CZhipuziHttpProxy proxy = CZhipuziHttpProxy(), int timeout = 10);
|
|
|
|
|
|
/**
|
|
|
* @brief HTTP GET请求
|
|
|
@@ -24,7 +24,7 @@ public:
|
|
|
* @param strResponse 输出参数,返回的内容
|
|
|
* @return 返回是否Post成功
|
|
|
*/
|
|
|
- int Get(const std::string & strUrl, std::string & strResponse, CZhipuziHttpProxy proxy = CZhipuziHttpProxy(), int timeout = 5);
|
|
|
+ int Get(const std::string & strUrl, std::string & strResponse, CZhipuziHttpProxy proxy = CZhipuziHttpProxy(), int timeout = 10);
|
|
|
|
|
|
/**
|
|
|
* @brief HTTPS POST请求,无证书版本
|
|
|
@@ -34,7 +34,7 @@ public:
|
|
|
* @param pCaPath 输入参数,为CA证书的路径.如果输入为NULL,则不验证服务器端证书的有效性.
|
|
|
* @return 返回是否Post成功
|
|
|
*/
|
|
|
- int Posts(const std::string & strUrl, const std::string & strPost, std::string & strResponse, const char * pCaPath = NULL, CZhipuziHttpProxy proxy = CZhipuziHttpProxy(), int timeout = 5);
|
|
|
+ int Posts(const std::string & strUrl, const std::string & strPost, std::string & strResponse, const char * pCaPath = NULL, CZhipuziHttpProxy proxy = CZhipuziHttpProxy(), int timeout = 10);
|
|
|
|
|
|
/**
|
|
|
* @brief HTTPS GET请求,无证书版本
|
|
|
@@ -43,7 +43,7 @@ public:
|
|
|
* @param pCaPath 输入参数,为CA证书的路径.如果输入为NULL,则不验证服务器端证书的有效性.
|
|
|
* @return 返回是否Post成功
|
|
|
*/
|
|
|
- int Gets(const std::string & strUrl, std::string & strResponse, const char * pCaPath = NULL, CZhipuziHttpProxy proxy = CZhipuziHttpProxy(), int timeout = 5);
|
|
|
+ int Gets(const std::string & strUrl, std::string & strResponse, const char * pCaPath = NULL, CZhipuziHttpProxy proxy = CZhipuziHttpProxy(), int timeout = 10);
|
|
|
|
|
|
public:
|
|
|
void SetDebug(bool bDebug);
|