troubleshooting Question

Find filename to save internet downloaded file(via HTTP) to

Avatar of Mutley2003
Mutley2003 asked on
Delphi
6 Comments1 Solution1567 ViewsLast Modified:
hi
If I enter this URL into a browser
http://www.censusdata.abs.gov.au/ABSNavigation/download?format=xls&collection=Census&period=2006&productlabel=Ancestry%20by%20Country%20of%20Birth%20of%20Parents&producttype=Census%20Tables&method=Place%20of%20Usual%20Residence&areacode=SSC16003
for a file download
then the browser suggests
20680-b08-Aarons Pass-NSW (State Suburb).xls
as the filename to save to.

Note that this filename contains info which is not in the url

Looking around the net for downloading files I see various bits of code which use WinInet functions like InternetOpenURL, but the code always seems to want you to supply the target filename (ie the name of the file to which data is to be saved).

But I want to GET that filename, as per the above example.

How can I do that?

Thanks
ASKER CERTIFIED SOLUTION
Russell Libby
Software Engineer, Advisory
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros