Click here to Skip to main content
15,890,825 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to open the HTTP connection and read the file using URL? I want to read the file in the given URL and want to save it in a char or CString, without saving the file in hard drive. Just want to read it in a variable.
Posted

1) Open Google

2) typ in: inet-functions winapi

3) click on the first link (http://graphcomp.com/info/specs/ms/inetr001.htm[^])
 
Share this answer
 
Hi,
The WinInet is the API which is used for applications to interact with FTP, and HTTP protocols to access Internet resources.
For more information you can follow these links.

http://msdn.microsoft.com/en-us/library/aa385331%28v=VS.85%29.aspx[^]

http://msdn.microsoft.com/en-us/library/aa383630%28v=vs.85%29.aspx[^]

Here is an example code:
http://www.programmershelp.co.uk/showcode.php?e=57[^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900