[python-win32] Read timeout with liburl2 on HTTPS connection with non-standard port

Tim Roberts timr at probo.com
Thu Nov 29 18:56:44 CET 2012


Claudiu Curca wrote:
>
> Hello all,
>
>  
>
> I am trying to find out the reason for some weird behavior on Windows.
>
>  
>
> We have the following code:
>
>  
>
> import urllib2
>
>  
>
> req = urllib2.Request("https://benotificationsmock.cloudapp.net:8443")
>
> resp = urllib2.urlopen(req, timeout = 5)
>
> print resp.code
>
>  
>
> This simple script should print “200”. However, all I ever get when
> running this on any Windows machine (for reference, mine is Windows 7,
> Python 2.7.3 and OpenSSL 1.0.0c / 0.9.8x) is the following exception:
>

I see the same thing here.  However, I also get a timeout when I try
that request from Firefox.  Forgive the silly question, but you're sure
the port is supposed to be 8443?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list