Forum Discussion

papowell's avatar
papowell
Occasional Contributor
13 years ago

Basic Authentication Not Handled when using Request

I set up a project using the downloaded WSDL and schema. I am behind a firewall so I set the URL
in the request explicitly:

http://test:password@testserver.private/TEST

And here is what was sent back by the server:


HTTP/1.1 401 Authorization Required
Date: Fri, 17 Jun 2011 14:59:10 GMT
Server: Apache/2.2.17 (FreeBSD) DAV/2 PHP/5.3.5 with Suhosin-Patch mod_ssl/2.2.17 OpenSSL/0.9.8n mod_perl/2.0.4 Perl/v5.10.1
WWW-Authenticate: Basic realm="TestServer.private"
Content-Length: 401
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested. Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>


Does the SOAPUI HTTP client handle Basic Authentication? I thought it did.
If it does, is this a bug?

1 Reply

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    I don't think it supports it as part of the URL, please try specifying the credentials in the AUT tab under the XML request editor, does that help?

    regards,

    /Ole
    eviware.com