Message7884

Author amak
Recipients amak, erikive, fwierzbicki
Date 2013-03-01.20:23:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362169380.68.0.0513797032652.issue2021@psf.upfronthosting.co.za>
In-reply-to
Content
urllib2.urlopen("https://blah/").read() is working for me

Jython 2.7b1+ (default:e80a189574d0+, Feb 28 2013, 22:54:17)
[Java HotSpot(TM) Client VM (Sun Microsystems Inc.)] on java1.6.0_41
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> f = urllib2.urlopen('https://httpbin.org/ip')
>>> f.read()
'{\n  "origin": "10.120.118.223"\n}'

I note that you re using basic authorization. On a private server, so I can get a look at that the server is returning.

I suspect that the server is returning a www-authenticate header without quoting the realm name.

Please can you paste the output of this command: I'm specifically interested in the response headers.

curl -v -u admin:test https://192.168.1.101:8888/rest/system
History
Date User Action Args
2013-03-01 20:23:00amaksetmessageid: <1362169380.68.0.0513797032652.issue2021@psf.upfronthosting.co.za>
2013-03-01 20:23:00amaksetrecipients: + amak, fwierzbicki, erikive
2013-03-01 20:23:00amaklinkissue2021 messages
2013-03-01 20:23:00amakcreate