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
Programming

Avatar of undefined
Last Comment
ostdp

8/22/2022 - Mon
ozo

perl -MLWP::Simple -le "print ((head 'http://www.eeqp.com/stats/hof.html')[2])"
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
ostdp

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy