• Post Reply Bookmark Topic Watch Topic
  • New Topic

Odd http proxy configuration  RSS feed

William Stephens
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to figure out how to configure the Java proxy settings to match the configuration of a proxy.pac. My business proxies 1) all http ant https traffic to servers in our domain 2) all other http traffic, but does not proxy traffic to other https servers. Configuring Java to proxy ALL http and NO https would work, but I'm running into trouble.

Our app is started via Ant, so I'm basing my configuration on this: http://ant.apache.org/manual/proxy.html

Then I have an Ant target to create a propertyset

This is then set in my java call:

This allows http URL connections to work, but not https. Https appears to be using the http.* proxy settings.

Anyone know of a way to only proxy http and not https?,

Thanks in advance
Bill S.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!