Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet contacts originating host through proxy

 
Jeroen Kransen
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have an applet that wants to talk HTTP to the originating server. At least GETs, but preferable POSTs too. I am using Jakarta Commons HttpClient which works excellent in a non-proxy setup. HttpClient allows for the configuration of a proxy. This works well in a stand-alone Swing application, but in my applet I get this fundamental problem:

The proxy is not the originating host, and I am not allowed to make connections to anything but the originating host.

However, I know that it is possible to fetch things like images and sounds by using standard Applet API calls, even through proxies. So apparently the Applet makes an exception to the rule mentioned above for proxies in this matter. I wonder if I can use this possibility to do my own HTTP things, either by using HttpClient or by using something more straightforward like the Applet API.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic