Filenames of files downloaded via urlretrieve that have been redirected

Discussion in 'Python' started by Ray Slakinski, May 10, 2005.

  1. 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.



    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 Slakinski, May 10, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.