怎样用wininet.dll中的有关http的函数编程
编号:QA003674
建立日期: 2000年12月18日 最后修改日期:2000年12月18日
所属类别:
janes:
操作系统: windows 9x/me
编程工具: delphi 5
问题: 怎样用wininet.dll中的有关http的函数编程?例如delphi5中的twebconnection中用到的如:internetopen、internetconnect、httpopenrequest、httpsendrequest、httpqueryinfo、internetreadfile等等api函数,请提供一个详细的例子。
水平: 中级
回答:
关于WinInet的详细介绍可以参考VC++的帮助文件MSDN Libary的介绍,它详细介绍了每个函数的功能。你可以参考一个Delphi例子http://delphi.icm.edu.pl/ftp/d20free/httpget.zip,这个例子使用WinInet下载文件。另外一个控件http://SunSITE.ICM.edu.pl/delphi/ftp/d40free/advhttp.zip功能更强,它封装了全部与HTTP有关的功能,甚至包括SSL。
此问题由李海回答。
| |
|
|
| |
|
|