FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Download internet file without interference
Posts: 392
Joined: Tue Jul 29, 2008 01:55 PM
Re: Download internet file without interference
Posted: Sat Sep 25, 2010 07:56 PM

Hi, FiveWinners.

in the example of the previous post, Horizon, tell us how to get the file size over http.

this is the code:

cRequest := "HEAD "+oUrl:BuildAddress() + " HTTP/1.1" + CRLF + ;
"Host: "+oUrl:cServer+ CRLF + ;
"User-Agent: HTTP-Get-File-Size" + CRLF + ;
"Connection:close" + CRLF + ;
CRLF

Might indicate to us how to get the date and time of a file over http?

Regards

Visite Chiapas, el paraiso de México.
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Download internet file without interference
Posted: Sun Sep 26, 2010 02:16 PM

Hi,

I did not tried but I think You can search "Last-Modified:" instead of "Content-Length:" and extract the date and time.

It should be return like this format:

Last-Modified: Wed, 15 Nov 1995 04:58:08 GMT

Good Luck.

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06

Continue the discussion