Forum Moderators: coopster
For example, the url is in a format similar to the link below When you click it, it redirects somewhere and provides REPORTS.ZIP (note the bolded area of the example link).
http://www.example.com/file.php?date=2006/01/18&date2=2006/01/19&file=REPORTS&info=all
The problem is that the url is not a direct link and when clicked, it prompts any (standard) browser to download the (zip) file. When I tried using wget, it downloads file.php which does no good.
What do I need to do for it to download and write the file to my local directory?
you could also look at [curl.haxx.se...] and see if there is any specific thing to do with file retrieval, especially zip.
I would also read through the comments on these pages
[php.net...]
[php.net...]
I know they're longbut there is very often valuable information in there