+ Reply to Thread
Results 1 to 2 of 2

Thread: HTTP Proxy setting in Java

  1. #1
    Junior Member
    Join Date
    Feb 2012

    HTTP Proxy setting in Java

    I am doing HTTP Webrequest to a website and i'd like to add proxy to that request , how can i do that ?
    Last edited by gofran; 11-12-2012 at 03:06 AM.

  2. #2
    Junior Member
    Join Date
    Jan 2012
    If you want to set proxy settings and switch between them just use that piece of code
    System.getProperties().put("http.proxyHost", "someProxyURL");
    System.getProperties().put("http.proxyPort", "someProxyPort");
    System.getProperties().put("http.proxyUser", "someUserName");
    System.getProperties().put("http.proxyPassword", "somePassword");
    And then you should use them while you are sending HTTP Requests.

+ Reply to Thread

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts