{"id":958,"date":"2019-11-14T16:57:46","date_gmt":"2019-11-14T03:57:46","guid":{"rendered":"https:\/\/www.ronella.xyz\/?p=958"},"modified":"2019-11-14T16:57:46","modified_gmt":"2019-11-14T03:57:46","slug":"java-proxy-properties-by-protocol","status":"publish","type":"post","link":"https:\/\/www.ronella.xyz\/?p=958","title":{"rendered":"Java Proxy Properties By Protocol"},"content":{"rendered":"<h3>Common Protocols<\/h3>\n<table>\n<tbody>\n<tr>\n<td><strong>Protocol<\/strong><\/td>\n<td align=\"center\"><strong>proxyHost<\/strong><\/td>\n<td align=\"center\"><strong>proxyPort<\/strong><\/td>\n<td align=\"center\"><strong>nonProxyHosts<\/strong><\/td>\n<td align=\"center\"><strong>proxyUser<\/strong><\/td>\n<td align=\"center\"><strong>proxyPassword<\/strong><\/td>\n<\/tr>\n<tr>\n<td><strong>http<\/strong><\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<\/tr>\n<tr>\n<td><strong>https<\/strong><\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\"><em>also use <strong>http.nonProxyHosts<\/strong><\/em><\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<\/tr>\n<tr>\n<td><strong>ftp<\/strong><\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<td align=\"center\">Y<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<blockquote><p>For <strong>nonProxyHosts<\/strong>, a list of hosts that should be reached directly without the proxy. The list is separated by '|' (i.e. pipe symbol). The patterns may start or end with a '*' for wildcards.<\/p><\/blockquote>\n<p>If the protocol value is <strong>Y<\/strong> for a particular header, it means you can combine the protocol with the header <em>(e.g. http is Y for proxyHost in the table, thus we can combine it as <strong>http.proxyHost<\/strong>) to form a single property<\/em>.<\/p>\n<h3><strong>SOCKS Protocol<\/strong><\/h3>\n<table>\n<tbody>\n<tr>\n<td><strong>Property<\/strong><\/td>\n<td><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td>socksProxyHost<\/td>\n<td>The host of the SOCKS proxy server.<\/td>\n<\/tr>\n<tr>\n<td>socksProxyPort<\/td>\n<td>The port <em>(i.e. defaulting to <strong>1080<\/strong>) <\/em>where SOCKS proxy server is listening.<\/td>\n<\/tr>\n<tr>\n<td>socksProxyVersion<\/td>\n<td>The version <em>(i.e. defaulting to <strong>5<\/strong>) <\/em>of the SOCKS protocol supported by the server.<\/td>\n<\/tr>\n<tr>\n<td>java.net.socks.username<\/td>\n<td>The username for authenticating to SOCKSv5 proxy server.<\/td>\n<\/tr>\n<tr>\n<td>java.net.socks.password<\/td>\n<td>The password for authenticating to SOCKSv5 proxy server.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>System Proxy<\/h3>\n<p><strong>java.net.useSystemProxies<\/strong> set this property to true to use the system proxy.<\/p>\n<h3>Simple Example of Using Some of the Properties<\/h3>\n<pre style=\"white-space: pre;\">java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=808 ApplicationAccessingTheNet<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Common Protocols Protocol proxyHost proxyPort nonProxyHosts proxyUser proxyPassword http Y Y Y Y Y https Y Y also use http.nonProxyHosts Y Y ftp Y Y Y Y Y For nonProxyHosts, a list of hosts that should be reached directly without the proxy. The list is separated by &#8216;|&#8217; (i.e. pipe symbol). The patterns may start [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[],"_links":{"self":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/958"}],"collection":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=958"}],"version-history":[{"count":3,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/958\/revisions"}],"predecessor-version":[{"id":961,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=\/wp\/v2\/posts\/958\/revisions\/961"}],"wp:attachment":[{"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ronella.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}