Qt Http请求怎么设置超时时间
1个回答
展开全部
HttpClient 4:
httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT,60000);或者
HttpConnectionParams.setConnectionTimeout(params, 6000);
HttpClient 3:
httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(60000);
httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT,60000);或者
HttpConnectionParams.setConnectionTimeout(params, 6000);
HttpClient 3:
httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(60000);
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询