By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,387 Members | 1,751 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,387 IT Pros & Developers. It's quick & easy.

Filenames of files downloaded via urlretrieve that have been redirected

P: n/a
I got a small issue, I am using urllib.urlretreive to download files
but in some cases I'm downloading from a CGI that is redirecting
urlretrieve to a different url.

Example:

urllib.urlretreive('http://someurl.com/files.asp?file=55',
'tempFileName.tmp')

Is there a way to know what filename files.asp is redirecting to so I
can rename tempFileName.tmp to the correct name?

Thanks in advance,
Ray

Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.