467,145 Members | 971 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,145 developers. It's quick & easy.

urllib2.urlopen hangs, urllib.urlopen works?

hello,
I have an odd behaviour. I try to download some files connected to a
specific webpage (e.g. all stylesheets) with
urllib2.urlopen(x)
This seems to hang on the 2nd file or so.

Doing the exact same thing via
urllib.urlopen(x)
does work without a hitch...

I don't really to use urllib instead of urllib2 but am wondering where
the problem is and if there is a workaround (or just my own stupidity)?
Also with urllib I cannot send my own user-agent header as i wanted to do...

thanks for any hint!

chris
Jul 21 '05 #1
  • viewed: 1277
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by bmiras@yahoo.com | last post: by
reply views Thread by Grant Edwards | last post: by
1 post views Thread by kelio@yandex.ru | last post: by
reply views Thread by Ritesh Raj Sarraf | last post: by
reply views Thread by Ali.Sabil@gmail.com | last post: by
1 post views Thread by Alessandro Fachin | last post: by
3 posts views Thread by Alexnb | last post: by
6 posts views Thread by robean | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.