Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A way to copy a file from my www-server to CPU…

Status
Not open for further replies.
try using function InternetReadFile

Ion Filipski
1c.bmp
 
if you want to do it more basicly in socket level:
[1]connect to : 80;
[2]send http get request, such as:
GET /ExistingTxt.txt HTTP/1.0\r\n
Host: Pragma: no-cache\r\n
Agent: simple\r\n
\r\n
[3]wait web server response,
normal one likes:
HTTP/1.0 200 OK\r\n
Content-Length: 2048\r\n
Date: ...\r\n
\r\n
...........(content is here, length = 2048)


[4]read the resp conent & write to local hard disk..

jungle
 
OK! Thanks.

I found the func: URLDownloadToFile(...)
and it also works.

APe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top