Link to home
Start Free TrialLog in
Avatar of Jimbo1954
Jimbo1954

asked on

downloading header information only

Hi Guys

Can somebody please give me the code needed to dowload the header information only from a website using winhttp.

The website is secure requiring username/password, I need to check if the file has been updated, so I need the the "Last-modified" information, then if it has been modified download the rest of the file, if it hasnt, disconnect.

The idea is to check the website at startup, if the file has been modified since the last download, download it and update a database, it it hasnt disconnect and carry on with the existing database. this is a csv file that is being imported into a database and is around 3 meg, so I dont want download the whole file if it is not modified.


Thanks
 Jimbo
Avatar of ozo
ozo
Flag of United States of America image

perl -MLWP::Simple -le "print ((head 'http://www.eeqp.com/stats/hof.html')[2])"
Avatar of Jimbo1954
Jimbo1954

ASKER

Thanks ozo, but I haven't got a clue about perl, sorry I should have said I am using VB6.

Jimbo
ASKER CERTIFIED SOLUTION
Avatar of ostdp
ostdp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial