Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Security / July 2004

Tip: Looking for answers? Try searching our database.

Proxy authentication for HTTP post through applet

Thread view: 
SPG - 23 Jul 2004 15:04 GMT
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.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.