pegasy / python-ntlm

Automatically exported from code.google.com/p/python-ntlm
0 stars 0 forks source link

urllib2.HTTPError is not raised when server respond with a non 200 code. #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Try to retrieve a ntlm secured url that respond with an error code,
example code 500.

What is the expected output? What do you see instead?

urllib2.HTTPError is not raised.

What version of the product are you using? On what operating system?

trunk

Original issue reported on code.google.com by fre...@gmail.com on 27 Jan 2009 at 4:25

GoogleCodeExporter commented 9 years ago

Original comment by Matthijs.Mullender on 29 Jan 2009 at 9:00

GoogleCodeExporter commented 9 years ago
I've made a small patch creating an HTTPNtlmAuthHandler() that throws or not 
errors... 
Would you be interested? how could I participate to this project?

Original comment by ronan.de...@gmail.com on 3 Mar 2010 at 11:19

GoogleCodeExporter commented 9 years ago
This creates a big problem when using soap libs as Suds for example, it means 
the 
errors won't be handled correctly. Where can I send you the quick patch I made?

Original comment by ronan.de...@gmail.com on 7 Apr 2010 at 10:32

GoogleCodeExporter commented 9 years ago
Sorry for the delay getting back on this, Ronan.  Could you please upload the 
patch as an attachment to a comment?  Thanks!

Original comment by samw...@gmail.com on 27 Feb 2013 at 2:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Here is the patch.
I hope I havent forgottten anything, it is very simple indeed. If it fails in 
any way, don't hesitate to tell me. Cheers!

Original comment by ronan.de...@gmail.com on 6 Mar 2013 at 3:31

Attachments: