Proxy authentication for HTTP post through applet - Java

This is a discussion on Proxy authentication for HTTP post through applet - Java ; 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 ...

+ Reply to Thread
Results 1 to 4 of 4

Proxy authentication for HTTP post through applet

  1. Default 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



  2. Default Re: Proxy authentication for HTTP post through applet

    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

  3. Default Re: Proxy authentication for HTTP post through applet

    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




  4. Default Re: Proxy authentication for HTTP post through applet

    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.

+ Reply to Thread

Similar Threads

  1. Applet detecting proxy information from the browser
    By Application Development in forum Java
    Replies: 0
    Last Post: 10-09-2007, 01:43 PM
  2. .NET based SOAP proxy and HTTP Basic Authentication
    By Application Development in forum DOTNET
    Replies: 1
    Last Post: 06-23-2006, 10:09 AM
  3. Wrong host in HTTP post on test pages behind reverse proxy
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 05-24-2006, 03:56 AM
  4. Error:The request failed with HTTP status 407:Proxy authentication
    By Application Development in forum DOTNET
    Replies: 0
    Last Post: 03-17-2006, 02:57 AM
  5. Detect browser proxy settings from applet
    By Application Development in forum Java
    Replies: 3
    Last Post: 07-22-2004, 05:44 PM