Is there anyway to get wget to save based on the following headers and not the original url?

GET /download.php?id=116195&sid=77b99f1a30bc558d0cfb9ae3a533bd67 HTTP/ 1.0

is the url

---response begin---
HTTP/1.1 200 OK
Date: Sat, 27 May 2006 15:12:01 GMT
Server: Apache/2.0.52 (Unix) mod_ssl/2.0.52 OpenSSL/0.9.7e DAV/2 PHP/ 4.3.10 mod_bwshare/0.1.6 mod_perl/1.999.21 Perl/v5.8.3
X-Powered-By: PHP/4.3.10
Pragma: public
Content-Disposition: inline; filename="filename.jpg"
Content-length: 83646
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Content-Type: image/jpeg; name="filename.jpg"

---response end---
200 OK
Length: 83,646 (82K) [image/jpeg]

100%[====================================>] 83,646       245.45K/s

10:11:36 (244.39 KB/s) - `sitename.com/download.php? id=116195&sid=77b99f1a30bc558d0cfb9ae3a533bd67' saved [83646/83646]

...

I want the save filename to be what's in the headers not the url

Reply via email to