HttpOpenRequestW 出现访问异常

XueBoy163 2007-01-18 05:57:41
HINTERNET hRequestFile = HttpOpenRequestW(hConnection,_T("GET"),stURLCom.lpszUrlPath,NULL,NULL,(LPCWSTR*)L"*/*\0", 0,NULL);
改成
HINTERNET hRequestFile = HttpOpenRequestW(hConnection,_T("GET"),stURLCom.lpszUrlPath,NULL,NULL,(LPCWSTR*)"*/*\0", 0,NULL);
就不会有这问题,但最近还是下裁不到需要的东西,因为mime错误,请问为什么?
...全文
196 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
gaooo 2007-01-19
  • 打赏
  • 举报
回复
hRequestFile = HttpOpenRequestW(hConnection,_T("GET"),stURLCom.lpszUrlPath,NULL,NULL,(LPCWSTR*)"*/*\0", 0,NULL);

lpszAcceptTypes : pointer to a null-terminated array of strings that indicates media types accepted by the client. If this parameter is NULL, no types are accepted by the client. Servers generally interpret a lack of accept types to indicate that the client accepts only documents of type "text/*" (that is, only text documents—no pictures or other binary files). For a list of valid media types, see ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types.

18,356

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 网络编程
c++c语言开发语言 技术论坛(原bbs)
社区管理员
  • 网络编程
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧