Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 85371 invoked from network); 27 May 2009 23:25:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 May 2009 23:25:46 -0000 Received: (qmail 91111 invoked by uid 500); 27 May 2009 23:25:57 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 91001 invoked by uid 500); 27 May 2009 23:25:57 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 90991 invoked by uid 99); 27 May 2009 23:25:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 23:25:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sebbaz@gmail.com designates 209.85.219.162 as permitted sender) Received: from [209.85.219.162] (HELO mail-ew0-f162.google.com) (209.85.219.162) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 May 2009 23:25:46 +0000 Received: by ewy6 with SMTP id 6so5190037ewy.42 for ; Wed, 27 May 2009 16:25:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ayOf/6UXRPnnd6F8pm1mnMVeJ1E4aNhbs/x6LWiX/B0=; b=C9MW7XmFPa/OHKLP17a1eRgPn7inn3yPebpOJDkhN/WHuVvuRkx9bpVNBDEGKUwxwo vwNLzdcPdAlntB+bGqINHX497o9V/iYif5Oxtz0+vkFuPs5tMmlnDJQv48TRQbbCsZ6i cyb4NPT+it5fZGvGqBIq3ESoPeOM1BP7wvcRs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=Ss+ShnB2BAwyiEnii57JDP05TOFR1boK/xbBg27Vr32HRBPTVgjCmHSPZHO671FJnF oFyWg/sQeT/QxlYeSzw95dgJ6VDjKSlikzOWTVJPR9IrfoCvZ8gc2WF1dBRd5tltRym3 g8nLBPoq6cJDdqFdpinqRAnRoJXW0Td7BTgdA= MIME-Version: 1.0 Received: by 10.216.24.141 with SMTP id x13mr218217wex.106.1243466726380; Wed, 27 May 2009 16:25:26 -0700 (PDT) In-Reply-To: <01d901c9df1d$96339ba0$c29ad2e0$@com.au> References: <019a01c9de84$7121ce20$53656a60$@com.au> <01b401c9de97$1cf11780$56d34680$@com.au> <01d901c9df1d$96339ba0$c29ad2e0$@com.au> Date: Thu, 28 May 2009 00:25:26 +0100 Message-ID: <25aac9fc0905271625w58b68d1el6da2db1af5fc0e0d@mail.gmail.com> Subject: Re: TelnetClient in common.net v2.0 From: sebb To: Commons Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 27/05/2009, Dale Harris wrote: > Thanks for the idea, but doesn't appear to work. I've added the following > method to my app to disable the socks proxy host to no joy. > > private void disableSocksProxy() { > Properties sysprops = System.getProperties(); > sysprops.remove("socksProxyHost"); > sysprops.remove("socksProxyPort"); > sysprops.remove("java.net.socks.username"); > sysprops.remove("java.net.socks.password"); > } That only deletes the properties from "sysprops"; it does not delete the system properties themselves. I suggest you display the values of the properties to see if they are actually set. > The only way around my issue that I've found so far is to create a > SocketFactory for the TelnetClient to use. > > > Regards, > > Dale Harris > IT Support > > > -----Original Message----- > > From: James Carman [mailto:james@carmanconsulting.com] > Sent: Wednesday, 27 May 2009 21:08 > To: Commons Users List > Subject: Re: TelnetClient in common.net v2.0 > > On Wed, May 27, 2009 at 6:58 AM, James Carman > wrote: > > There are system properties you can set to "turn on" proxies for the > > Java networking classes. That's the default way that Socket would > > become proxy-aware. > > > > FYI: > > http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org