Hi,
I have a requirement to upgrade one of our datafeed applets that currently
uses TCP/IP to send and receive data to use HTTP posts and read the relevant
responses.
The problem is that we need to service 10s of thousands of clients, each of
which will be behind their own particular proxy.
I need to be able to make an HTTP post (probably using the
URL.openConnection() method to get the HTTPUrlConnection), or the httpclient
toolkit from Ronal Tschlar ( http://www.innovation.ch/java/HTTPClient/).
I posted a simillar article here yesterday which Roedy Green kindly helped
with, informing me that the Proxy connection settings will be detected by
the applet if present.
Now, I know that the HTTPConnection appears to detect that it is behind a
proxy, which is fab, but it does not seem to be able to handle the
authentication to the proxy by default. Therefore, if we do not know the
user's credentials then we cannot do anything through that proxy.
Surely there has to be a way to detect these settings (bear in mind we will
be using almost 100% IE browsers) and pass them through?
I have been looking at this for a few days now and am starting to feel there
is no real business solution to this problem.
Steve
Michael Amling - 23 Jul 2004 16:12 GMT
> Hi,
>
[quoted text clipped - 19 lines]
> Surely there has to be a way to detect these settings (bear in mind we will
> be using almost 100% IE browsers) and pass them through?
How do your applet's current non-http TCP connections get through the
proxy?
--Mike Amling
SPG - 23 Jul 2004 16:57 GMT
They go through a specific port which bypasses the Proxy.
This is no longer a viable solution as many banks are saying "oh no you
don't" to that! ;)
Steve
> > Hi,
> >
[quoted text clipped - 24 lines]
>
> --Mike Amling
Roedy Green - 23 Jul 2004 19:23 GMT
>Surely there has to be a way to detect these settings (bear in mind we will
>be using almost 100% IE browsers) and pass them through?
Perhaps the solution is some JNI. Is there something in the Windows
API that will tell you the proxies?
see http://mindprod.com/jgloss/jni.html

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.