java URL working on browser but not in client program
PHP Snippet 1:
-Dhttp.proxyHost=yourProxyHost -Dhttp.proxyPort=yourProxyPort -Dhttps.proxyHost=yourProxyHost -Dhttps.proxyPort=yourProxyPort
PHP Snippet 2:
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://example.com"))
.headers("User-Agent","Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36")
.POST(HttpRequest.BodyPublishers.noBody())
.build();