python-ntlm icon indicating copy to clipboard operation
python-ntlm copied to clipboard

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

Open GoogleCodeExporter opened this issue 10 years ago • 6 comments

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 [email protected] on 27 Jan 2009 at 4:25

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter

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

  • Changed state: Accepted
  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter

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 [email protected] on 3 Mar 2010 at 11:19

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter

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 [email protected] on 7 Apr 2010 at 10:32

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter

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 [email protected] on 27 Feb 2013 at 2:25

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter

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 [email protected] on 6 Mar 2013 at 3:31

Attachments:

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter