reckart/shib-http-client — pull request #4 by spaetow (2013-11-25 19:48:25+00:00)
Title: Only HTTP/1.1 200 OK is an acceptable response for Basic Auth on ECP

Hi Richard, apparently if wrong user details are provided, it won't be the SAML response that contains authentication responses, but the web server itself may also respond with a HTTP/1.1 401 Not Authorized error message. Naturally, that can't be parsed since it is not a SOAP response. Thought this might be useful to check the return code before continuing.