I want the actual file name that is returned by a PHP script

Posted by Aymon Fournier on Stack Overflow See other posts from Stack Overflow or by Aymon Fournier
Published on 2010-04-24T19:36:23Z Indexed on 2010/04/24 19:43 UTC
Read the original article Hit count: 143

Filed under:
|
|
|

I am writing a python script that downloads a file given by a URL. Unfortuneatly the URL is in the form of a PHP script i.e. www.website.com/generatefilename.php?file=5233

If you visit the link in a browser, you are prompted to download the actual file and extension. I need to send this link to the downloader, but I can't send the downloader the PHP link.

How would I get the full file name in a usable variable?

© Stack Overflow or respective owner

Related posts about python

Related posts about php