1 Reply Latest reply on Jan 30, 2007 10:55 PM by 807596

    Proxy Authentication using java.net package


      My Product is a Network based product...

      we implement our product run through proxy which required no user Authentication..

      but if a proxy needs Authentication.. How can it be handled using java.net package?

      Anyone who having experience in these things.. Reply me .. it's very urgent..
        • 1. Re: Proxy Authentication using java.net package
          Proxy authentication beyond the 'Basic' authentication scheme (where passwords are passed in plain text) is apparently very complicated. There are 4 authentication schemes that you really need to support if you want to plug into all proxy servers -- Basic, Digest, NTLM (Microsoft specific), and then there are Custom schemes).

          The folks at Apache have done what appears to be an excellent job of implementing all of this support for you in their 'HTTPClient' package. Unfortunately, the core class in this package, namely HttpClient, is geared towards novice programmers and it has a bunch of methods to send/receive socket data. Most people will have their own communication layer. Therefore, the best thing to do is plug into the lower-level classes in this Apache project to get your proxy authentication and login done.



          - Eric