When setting the Proxy settings manually in SoapUI (Ready! API) from Smartbear, it uses the same settings than for the HTTP Authorization to the server, leading to 407 - Auth required from the Proxy server.
The same test using curl works perfectly: it takes the Proxy username / password for the Proxy-Authorization
header and the params in --user
for the Authorization
header.
Is it a bug or am I missing something?
It is a known bug in both SoapUI and Ready! API. A workaround exists however.
Set up the proxy normally with credentials. Skip setting the credentials on the request. Instead open the header tab and add a new header called
Authorization
. Take the username and password in the formusername:password
and base64 encode it. Set the value of the header toBasic base64string
. Example: If the username was user and password was pass the value should beBasic dXNlcjpwYXNz
.This will make the request get correct
Proxy-Authorization
andAuthorization
headers.