Have a server https://abcxx.com and need to upload a file to this at location https://abcxx.com/internalfolder/ . Have obtained a proxy for the server with a proxy host and proxy port. How to connect to this proxy and send the file to the required folder? Tried few examples but not much success.
URL weburl = new URL("https://abcxx.com");
Proxy socksProxy
= new Proxy(Proxy.Type.HTTP, new InetSocketAddress("proxyhost", proxyport));
HttpURLConnection socksConnection
= (HttpURLConnection) weburl.openConnection(socksProxy);
Iam new to networking so im not sure if iam doing this right in above sample code.