Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Chris Brown
Hello, I would like to perform a simple request against a HTTP server in an application that will be deployed to customers with a wide variety of network configurations. The application won't be deployed as an applet or within Java Webstart, but will require JDK 1.4.2+ as the platform. The

Re: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Roland Weber
Chris Brown [EMAIL PROTECTED] 22.10.2004 10:18 Please respond to Commons HttpClient Project To [EMAIL PROTECTED] cc Subject Auto-detecting proxy settings in a standalone Java app Hello, I would like to perform a simple request against a HTTP server in an application

Re: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Ortwin Glück
Roland Weber wrote: Wait, here is another idea: you could write a startup script that does the proxy settings lookup, then passes the settings through -D definitions as system properties, which can be accessed by your Java application. That's a bit less ugly than calling native code from within

Re: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Oleg Kalnichevski
And how often does that happen in a course of one working day? I'd say not that often. I do agree with Roland that a startup script written in VBScript appears to be the best solution for the problem Oleg On Fri, 2004-10-22 at 10:54, Ortwin Glck wrote: Roland Weber wrote: Wait, here is

Re: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Chris Brown
-detecting proxy settings in a standalone Java app Date: Fri, 22 Oct 2004 11:00:33 +0200 And how often does that happen in a course of one working day? I'd say not that often. I do agree with Roland that a startup script written in VBScript appears to be the best solution for the problem Oleg On Fri, 2004

Re: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Roland Weber
To [EMAIL PROTECTED] cc Subject Re: Auto-detecting proxy settings in a standalone Java app Hi, Thanks for all the rapid feedback so far. I don't have VB or the VB runtime, although perhaps I could use the JNIWrapper software to access this information (if I knew where it was...!). Pity

RE: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Bruce McHaffie
respond to Commons HttpClient Project To [EMAIL PROTECTED] cc Subject Re: Auto-detecting proxy settings in a standalone Java app Hi, Thanks for all the rapid feedback so far. I don't have VB or the VB runtime, although perhaps I could use the JNIWrapper software to access this information

RE: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Chris Brown
-To: Commons HttpClient Project [EMAIL PROTECTED] To: 'Commons HttpClient Project' [EMAIL PROTECTED] Subject: RE: Auto-detecting proxy settings in a standalone Java app Date: Fri, 22 Oct 2004 09:41:57 -0400 Hi Chris, You may also want to take a look at the plugin.jar that ships with the JRE. You'll find

RE: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Bruce McHaffie
: October 22, 2004 10:35 AM To: [EMAIL PROTECTED] Subject: RE: Auto-detecting proxy settings in a standalone Java app Hi, I can get this to work within an applet, but not standalone. When running standalone, I have the plugin.jar file in the classpath (it was also obviously in the classpath

RE: Auto-detecting proxy settings in a standalone Java app

2004-10-22 Thread Chris Brown
] To: 'Commons HttpClient Project' [EMAIL PROTECTED] Subject: RE: Auto-detecting proxy settings in a standalone Java app Date: Fri, 22 Oct 2004 11:47:50 -0400 Hi Chris, I just meant decompile the plugin.jar code and take a look at what Sun does for getting proxy settings. I've never tried loading