折叠 编辑本段 文件名
所处动态链接库的文件名套越仍:WinINet导.dll
HINTERNET hHttpFile = ::HttpOpenReque360百科st(
hConnect, // 1 HINTERNET hHttpSession
"GET", // 2 L女PCTSTR lpszVerb
"/MSDN/MSDNINFO/", // 3 LPCTSTR lpszObjectName
HTTP_VERSION, // 4 LPCTSTR lpszVersion
NULL, // 5 LPCTSTR lpszReferer
0, // 6 LPCTSTR FAR * lplpszAcceptTypes
INTE补RNET_FLAG_DONT_CACHE, // 7 DWORD dwFlags
0 // 8 DWORD dwContext
) ;
折叠 编辑本段 句没巴自柄
返回创建请求的句柄。
参数<1>的名称为"h任编卫三组字乙沿值脸浓Connect",类型为"整数型"。就是Internet的连接句柄
参数<2>的名称为"lpszVerb",类型训之坏为"文本型"。访问方式。在网页里只有get和post两种攻获限专示眼住们刘方法
参数<3>的系府都配前极生袁阿名称为"lpszObjectName",类型为"文本树手承绝湖功视行际从移型"。页面的地址
参数<4>的名证士年斤称为"lpszVer技胞事卫频基吸指温sion",类型为"文本型"。协议的版本"HTTP/1.1"通用的是这样。貌似听说过2.0,但是不懂是啥意思。
参数<5>的名称为"lpszReferer",类型为"文本型"。引用页,抓包得到的refer
参数<6>的名称为"lplpszAcce婷扬质上胶ptTypes",类型为"文本型"。
参数<7>的名称为"dwFlags",类型为"整数型"。2147483648
参数<8>的名称为"dwContext",类型为"整数型"。0
如果创建失败。需要释放Inter调耐站诉坚映netopen句柄和Internetconnect句柄
Value | Description |
INTERNET_FLAG_CACHE_IF_NET_FAIL | Return the resource from the cache if the network request for the resource fails due to an ER仍喜审误争ROR_INTERNET_CONNECTION_RESET or ERROR_INTERNET_CANNOT_CONNECT. 为资源的网络请求失败返回缓存的资源 |
INTERNET_FLAG_D测善犯象观易ONT_CACHE | No简念五职主台营为头想t supported. Data is never cached. 数据没有被缓存。 |
INTERNET_FLAG_HYPERLINK | Forces a r占杂乙eload if there was no Expires time and no Last-Modified time returned from the server whe哥继移王九广n determining whether to reload the item from the 孙材多抗治较network. WinInet研抗半速农沙念待且函数禁用SSL / TLS证书,是基于对给定的主机名的请求服务器返回检查。WinInet函数对一个简单的检查,使用证书的主机名称和简单的通配符匹配规则的比较。 |
INTERNET_FL汉支局述价车次务宣宁抓AG_IGNORE_CERT_CN_INVALID | Disables WinInet function checking of 黑套陈候岁著层举有确兰SSL/TLS-based certificates that are returned from the se照设别且念径验措析门儿rver against 者药长千修断the host name given in the request. WinInet functions use a simple che握粒厚不厂源丝织ck against certificates by comparing for matching host names and simple wildcardi复渐读城控安ng rules. |
INTERNET_FLAG_IGNORE_杀此士友毛厚印简CERT_DATE_I冷NVALID | Disables WinInet function checking of SSL/TLS-based certificates f里起场云换or proper validity dates. |
INTERNET_FLAG_IGNORE_REDIRECT_TO_HTTP | Disables th系生落远脱各进e ability of the WinInet functions to de持十斤新设tect this special type of redirect. When this flag is used, WinInet functions transparently allow redirects from HTTPS to HTTP URLs. |
INTERNET_FLAG_IGNO的味早编花RE_REDIRECT_TO_HT门五威识阳TPS | Disables the ability of the WinInet functions to detect this special t孩ype of redirect. When this flag is used, WinInet functions transparently allow redirects from HTTP to HTTPS URLs. |
INTERNET_FLAG_KEEP_CONN清年升胞员神批较ECTION | Uses keep-alive semantics, if available, for the connection. 宪责约庆问境This flag is requi学移事red for Microsoft Network (M叶杨如茶船外哪富SN), NT LAN Manager (NTLM), and other types of authentica里tion. |
INTERNET_FLAG_MAKE请班水青孩管_PERSISTENT | Not supported. 联婷式口均扩型末族不支持 |
INTERNE酒角井轮T_FLAG_MUST_CACHE_REQUEST | Causes a temporary file to b按路e created if the file ca渐据亮停黄案nnot be cached. Identical to the preferred value INTERNET_FLAG_NEED_FILE. |
INTERNET_FLAG_NEED_FILE | Causes a temporary file to be created if the file cannot be cached. |
INTERNET_FLAG_NO_AUTH | Does not attempt authentication automatically. |
INTERNET_FLAG_NO_AUTO_REDIRECT | Does not automatically handle redirection in HttpSendRequest. |
INTERNET_FLAG_NO_CACHE_WRITE | Does not add the returned entity to the cache. If the INTERNET_FLAG_HYPERLINK is also specified, WinInet will create the cache file but will not commit it. |
INTERNET_FLAG_NO_COOKIES | Does not automatically add cookie headers to requests, and does not automatically add returned cookies to the cookie database. |
INTERNET_FLAG_NO_UI | Disables the cookie dialog box. |
INTERNET_FLAG_PRAGMA_NOCACHE | Forces the request to be resolved by the origin server, even if a cached copy exists on the proxy. |
INTERNET_FLAG_READ_PREFETCH | This flag is currently disabled. |
INTERNET_FLAG_RELOAD | Not supported. Data is always from the wire and caching is not supported. |
INTERNET_FLAG_RESYNCHRONIZE | Reloads HTTP resources if the resource has been modified since the last time it was downloaded. |
INTERNET_FLAG_SECURE | Uses SSL/TLS transaction semantics. |