Home > Archive > Java Security > July 2004 > Proxy authentication for HTTP post through applet
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
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
| |
| Michael Amling 2004-07-23, 3:58 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
| |
|
| 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:
>
currently[color=darkred]
relevant[color=darkred]
of[color=darkred]
httpclient[color=darkred]
helped[color=darkred]
by[color=darkred]
a[color=darkred]
will[color=darkred]
>
> How do your applet's current non-http TCP connections get through the
> proxy?
>
> --Mike Amling
| |
| Roedy Green 2004-07-23, 3:58 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.
|
|
|
|
|