程石的WinHttpClient无法得到回应 [英] WinHttpClient by Cheng Shi can't get response

查看:82
本文介绍了程石的WinHttpClient无法得到回应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法得到我的webrequest的响应,这是我的代码



I can't get the reponse of my webrequest, here's my code

    // Set URL.
WinHttpClient client(L"http://www.codeproject.com/");

// Send HTTP request, a GET request by default.
client.SendHttpRequest();

// The response header.
wstring httpResponseHeader = client.GetResponseHeader();

// The response content.
wstring httpResponseContent = client.GetResponseContent();
printf((char*)httpResponseContent.c_str());





任何人都有修复?



Anyone got a fix?

推荐答案

你可能想问一下相关论坛 [< a href =http://www.codeproject.com/Articles/66625/A-Fully-Featured-Windows-HTTP-Wrapper-in-Ctarget =_ blanktitle =New Window> ^ ],甚至尝试调试它?
you might want to ask in the relevant forum[^], or even try debugging it?


Internet Explorer是我的问题,修复了它。无法将内容上传到gyazo,在Skype上发送图片,这也阻止了它正常工作。
Internet explorer was my issue, fixed it. Wasn't able to upload stuff to gyazo, send pictures on skype and it was preventing this from working properly too.


这篇关于程石的WinHttpClient无法得到回应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆