urllib2 problem

J

Jeremy Martin

List,

I'm relatively new to using python for interacting with webpages but
Ive run into a problem that really has me stumped. I wrote a script
that would figure out all the variables needed to request data from a
website. I originally just used urllib.urlopen and everything worked
fine on my Windows PC at work. I tried the same script at home on my
Fedora COre 3 box using python 2.4, and whenever I try to connect to
the site I get the (110, Connection Timed Out) Error.

At first I thought my firewall was causing problems with the script but
I noticed an odd patten. If the web site asked to accept cookies (like
the site I need) the script times out), if I point it to a site that
doesnt it works fine. Ive tried several attempts at using urllib2 and
the HTTPCookieProccessor and I still have no luck. Can anyone give me
any advice or pointers on what may be the problem here? I apologize if
this is kind of a rookie question but Ive been searching for about a
week with no luck.

Thanks!

Jeremy Martin
NWS WFO GLD
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

urllib2 FTP Weirdness 1
ntlm authentication for urllib2 0
urllib2 login help 1
gevent + urllib2 blocking 0
urllib2 and threading 6
urllib2.urlopen timeout 0
urllib2 and exceptions 6
Web authentication urllib2 0

Members online

Forum statistics

Threads
474,269
Messages
2,571,338
Members
48,026
Latest member
DannieKeeg

Latest Threads

Top