This is an Info request to help how to specify proxy host , proxy port with proxyUser & proxyPassword.
Trying with below doesn't work and may be some one can help to provide the syntax for setting all 4 parameters please?
*** below is not working from a coporate proxy and requests auth info.
System.setProperty("http.proxyHost", "proxy.xyz.com.au");
System.setProperty("http.proxyPort", "80");
System.setProperty("http.proxyUser", "[email protected]");
System.setProperty("http.proxyPassword", "Password");
System.getProperties().put("https.proxySet", "true");
What about proxy configuration in the docs?
you may want to try this:
RestAssured.proxy = host("127.0.0.1").withPort(8888);
I use it for running thru fiddler.
@timrsfo thanks for sharing your example
RestAssured.proxy = host("127.0.0.1").withPort(8888);
will work but if your organization use specific proxy such as "xxxorgcproxy.yy.org.com" and port xxxx. You will need to replace the "127.0.0.1" with "xxxorgcproxy.yy.org.com"
RestAssured.proxy = host("xxxorgcproxy.yy.org.com").withPort(xxxx);
Most helpful comment
you may want to try this:
RestAssured.proxy = host("127.0.0.1").withPort(8888);I use it for running thru fiddler.