Short answer: you can't...HTTP doesn't support wild-card requests.
Longer answer: presumably there's some method to the madness of
naming the file. Find the algorithm and use it.
It might be that the URL is available in some other page, so you
have to get that page, scrape it for the URL pattern, and then
use the resulting URL as your input.
It might be that the filename moves around because of some
complex algorithm you may (or may not) have access too. If you
have access to the algorithm, use it. If not, it might be that
the source is trying to make it hard for people to do exactly
what you're doing by randomly moving the file around on the
website in which case, be nice.
-tkc
Not directly related to your main question, but you might want to use
urllib.urlretrieve() rather than httplib for the downloading of the
file as the interface is a good bit simpler. See
http://docs.python.org/library/urllib.html#urllib.urlretrieve for the
docs on it.
Cheers,
Chris
--
Follow the path of the Iguana...
http://rebertia.com
Any server that dishes out files with changing names should be using the
ftp protocol that is meant for such things. It includes, I believe, a
directory request that lets clients discover filenames.