Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to run java.net.HttpURLConnection with proxy support

861684Apr 30 2012 — edited May 1 2012
Hello,

We are running our server application in Tomcat6. We want to get a web service from different server using java.net.HttpURLConnection. Also, we want to get this web service as remote-user i.e user who sent the request from browser. In other words, we want to get a web service as client user on a server running in java. Could you suggest if there are any ways to achieve this in java?

[Browser] -> [Server1] -> [Server2]
(Remote user)

Our requirement is we want to get a service from 'Server2' through 'Server1' but 'Server1' should get the service by impersonating 'remote user' or using remote user credentials. Could you let me know if this is possible to do in java?

Thanks.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 29 2012
Added on Apr 30 2012
2 comments
470 views