|
|
Proxy authentication for HTTP post through applet
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
|
|
0
|
|
|
|
Reply
|
SPG
|
7/23/2004 2:04:26 PM |
|
SPG wrote:
> 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?
How do your applet's current non-http TCP connections get through the
proxy?
--Mike Amling
|
|
0
|
|
|
|
Reply
|
Michael
|
7/23/2004 3:12:24 PM
|
|
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
"Michael Amling" <nospam@nospam.com> wrote in message
news:sV9Mc.1739$dM2.925@newssvr17.news.prodigy.com...
> SPG wrote:
>
> > 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?
>
> How do your applet's current non-http TCP connections get through the
> proxy?
>
> --Mike Amling
|
|
0
|
|
|
|
Reply
|
SPG
|
7/23/2004 3:57:11 PM
|
|
On Fri, 23 Jul 2004 14:04:26 GMT, "SPG"
<steve.nospoo.goodsell@nopoo.blueyonder.co.uk> wrote or quoted :
>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
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|
|
0
|
|
|
|
Reply
|
Roedy
|
7/23/2004 6:23:47 PM
|
|
|
3 Replies
463 Views
(page loaded in 0.046 seconds)
|
|
|
|
|
|
|
|
|