Enhance address match

This commit is contained in:
luchua-bc
2020-08-05 19:57:31 +00:00
parent ff0dacf1d7
commit 9a8eed8440
2 changed files with 18 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ public class InsecureBasicAuth {
* Test basic authentication with Apache HTTP GET request.
*/
public void testApacheHttpRequest2(String url) throws java.io.IOException {
String urlStr = "http://www.example.com:dashboardPort/payment/retrieve";
String urlStr = "http://www.example.com:8000/payment/retrieve";
HttpGet get = new HttpGet(urlStr);
get.setHeader("Accept", "application/json");
get.setHeader("Authorization", "Basic " + new String(Base64.getEncoder().encode("admin:test".getBytes())));