建立典型HTTP Client应用程序的步骤
2009-02-19 16:55
204 查看
The following table shows the steps you might perform in a typical HTTP client application:
From: http://www.cppblog.com/gohan/archive/2008/06/19/53963.html
Your goal | Actions you take | Effects |
---|---|---|
Begin an HTTP session. | Create a CInternetSession object. | Initializes WinInet and connects to server. |
Connect to an HTTP server. | Use CInternetSession::GetHttpConnection. | Returns a CHttpConnection object. |
Open an HTTP request. | Use CHttpConnection::OpenRequest. | Returns a CHttpFile object. |
Send an HTTP request. | Use CHttpFile::AddRequestHeaders and CHttpFile::SendRequest. | Finds the file. Returns FALSE if the file is not found. |
Read from the file. | Use CHttpFile. | Reads the specified number of bytes using a buffer you supply. |
Handle exceptions. | Use the CInternetException class. | Handles all common Internet exception types. |
End the HTTP session. | Dispose of the CInternetSession object. | Automatically cleans up open file handles and connections. |
相关文章推荐
- MFC库参考 典型HTTP客户端应用程序中的步骤
- Service Broker的基本概念及建立一个Service Broker应用程序的基本步骤
- 一个典型的Flex应用程序开发步骤
- 典型 HTTP 客户端应用程序中的步骤 msdn
- 一个典型的Flex应用程序开发步骤
- Oracle建立DBLINK的详细步骤记录
- ODBC建立SQL SERVER链接步骤
- SPICE建立Channel的详细步骤及消息传递流程
- 马牛的C#学习(第七天)-范例应用程序(建立类库)
- 2.7、总结 客户端和服务器端.它们的建立步骤一般:
- 建立一个android应用程序 一个输入框,一上显示框,一个按钮
- 达芬奇工具链的建立(工程编译步骤DM6446)
- 通过GitHub Pages建立个人站点(详细步骤)
- 开发机器学习应用程序的步骤总概
- c#ArcGIS Engine实例开发-桌面GIS应用程序框架的建立
- 浅谈如何建立三层体系结构的ASP应用程序
- SQL server建立连接JDBC的步骤
- 猎豹MFC--建立应用程序
- DHTMLX 前端框架 建立你的一个应用程序教程(四)--添加一个工具条toolbar