This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Applets and the fly likes Applet contacts originating host through proxy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet contacts originating host through proxy" Watch "Applet contacts originating host through proxy" New topic

Applet contacts originating host through proxy

Jeroen Kransen

Joined: Mar 31, 2003
Posts: 6

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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Applet contacts originating host through proxy
It's not a secret anymore!