I am trying to create a computerized bot to hit a particular website through HTTP connection through different IPs mostly through proxies.
I have created script based on following code
System.getProperties().put( "proxySet", "true" );
System.setProperty("http.proxyHost", "<PROXY IP>");
System.setProperty("http.proxyPort", "<PORT>");
ourURL = new URL("<TARGET WEBSITE>");
huc = (HttpURLConnection) ourURL.openConnection();
huc.setRequestMethod("GET");
But the problem in above code is when I check referring url, it takes my public IP only and not the proxy IP. Can someone help me in fixing this.