如何使用WinHTTP读取URL? [英] How to read URL with WinHTTP?

查看:211
本文介绍了如何使用WinHTTP读取URL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尊敬的先生们,
我正在使用WinHTTP连接服务器并发送/接收数据.
我想知道连接到我的网站后如何阅读阅读的URL内容吗?
我的意思是以下功能的正确设置是什么:

Dear Sirs,
I am using WinHTTP for connection to server and send/receive data.
I want know how I can read read URL content after connecting to my website?
I mean what are the correct settings for below functions:

httpResult = WinHttpSendRequest( hRequest, WINHTTP_NO_ADDITIONAL_HEADERS, 0, WINHTTP_NO_REQUEST_DATA, 0, 0, 0);
httpResult = WinHttpReceiveResponse( hRequest, NULL);



谢谢.



Thanks.

推荐答案

下面的链接可能有用.

使用WINHTTP和文档对象(DOM)实例通过爬网进行Web数据提取 [
Following link might be useful.

Web Data Extraction by Crawling using WINHTTP and Document Object (DOM) Instantiation[^]

Hope this will help!


尊敬的先生们,
谢谢您的帮助,
终于,我成功地从网页上读取了数据.
我的网页给我发送的日期是"1273253763".
我发现我以const char *的形式收到了这个数字,它不是int或double数.
我想知道如何将其转换为int或double数吗?

谢谢
Dear Sirs,
Thank you for your helping,
Finally I succeed read data from my webpage.
My webpage send date as "1273253763" to me.
I found I received this number as const char* and it is not int or double number.
I want know how I can convert that to int or double number?

Thanks,


这篇关于如何使用WinHTTP读取URL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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