我用循环用QHttp向一个服务器发送request请求
第一次发送成功获取返回数据,但是第二次就会走到 在 QHttp:sending 然后就停了,等待也没有reading的状态过来
请问有谁遇到过同样的问题,为什么连续发送就不行呢?
QHttpRequestHeader header("POST", url.path());
header.setContentType("application/x-www-form-urlencoded");
header.setValue("Host", url.host());
this->setHost(url.host());
/// start the request and store the requestID
requestID = request(header,data);