I try calling an external website from my webapplication with a proxy. Furthermore and need to execute a POST Request at this external website.
I\'m using: tomcat7, org.
I can think of a few issues that could cause this:
Are you sure your https proxy does not require authentication? In that case you would probably need to set the credentials in a context and execute the request using the context and the client.Check this example: http://www.the-swamp.info/blog/java-request-through-proxy/
Since you are using an https proxy and requesting an https url (SSL/TLS endpoint security) you may have problems with certificate validation. Check this good explanation for https proxies: Pros and cons of using a Http proxy v/s https proxy?