mwkirk / javapns

Test import of svn javapns repo from Google Code
3 stars 0 forks source link

System property http.noProxyHosts not considered #155

Open mwkirk opened 11 years ago

mwkirk commented 11 years ago

Original author: silvano....@vipera.com (November 21, 2012 08:11:11)

The ProxyManager class currently does not consider the system property http.noProxyHosts. I have a use case where I would like to bypass the http proxy for the javapns requests to APNS, but setting -Dhttp.noProxyHosts=gateway.sandbox.push.apple.com us ignored, meaning the javans requests are proxied nevertheless.

What steps will reproduce the problem?

  1. set https.proxyHost and https.proxyHost system properties
  2. javapns push notification for APNS will go through the proxy
  3. set -Dhttp.noProxyHosts=gateway.sandbox.push.apple.com
  4. javapns push notification for APNS still go through the proxy, even though they should not

What version of the product are you using? On what operating system?

2.2

Original issue: http://code.google.com/p/javapns/issues/detail?id=155