Re: [Tutor] urllib2 issue getting realm

2011-08-31 Thread Johan Geldenhuys
Thanks Sanders Will give that a go Johan Sent from my iPhone 4 On 31/08/2011, at 23:03, Sander Sweers wrote: > On 31 August 2011 14:27, Johan Geldenhuys wrote: >> On 31/08/2011, at 22:09, Sander Sweers wrote: >>> On 31 August 2011 09:46, Johan Geldenhuys wrote: I am trying to use a very

Re: [Tutor] urllib2 issue getting realm

2011-08-31 Thread Sander Sweers
On 31 August 2011 14:27, Johan Geldenhuys wrote: > On 31/08/2011, at 22:09, Sander Sweers wrote: >> On 31 August 2011 09:46, Johan Geldenhuys wrote: >>> I am trying to use a very simple piece of code to get the realm from >>> different HTTPS URLs. >>> >>> This realm is essential for successful a

Re: [Tutor] urllib2 issue getting realm

2011-08-31 Thread Johan Geldenhuys
Focusing on the code below, do you know why it would raise the exception for the first IP and not for the second? Thank you Johan Sent from my iPhone 4 On 31/08/2011, at 22:09, Sander Sweers wrote: > On 31 August 2011 09:46, Johan Geldenhuys wrote: >> I am trying to use a very simple piece of

Re: [Tutor] urllib2 issue getting realm

2011-08-31 Thread Steven D'Aprano
Johan Geldenhuys wrote: Hi everybody, I am trying to use a very simple piece of code to get the realm from different HTTPS URLs. This realm is essential for successful authentication on the HTTPS session. What happens if you paste https://192.168.10.191/axis-cgi/jpg/image.cgi?resolution=1280

Re: [Tutor] urllib2 issue getting realm

2011-08-31 Thread Sander Sweers
On 31 August 2011 09:46, Johan Geldenhuys wrote: > I am trying to use a very simple piece of code to get the realm from > different HTTPS URLs. > > This realm is essential for successful authentication on the HTTPS session. I think you got 2 things mixed up, http authentication and encrypted http

[Tutor] urllib2 issue getting realm

2011-08-31 Thread Johan Geldenhuys
Hi everybody, I am trying to use a very simple piece of code to get the realm from different HTTPS URLs. This realm is essential for successful authentication on the HTTPS session. If have to run this for a few different hosts and capture the realm. For one host, it works perfectly, but when I t