mwkirk / javapns

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

Trying to use proxy: getting error #131

Closed mwkirk closed 11 years ago

mwkirk commented 11 years ago

Original author: sdhondi...@gmail.com (June 28, 2012 20:14:41)

What steps will reproduce the problem? 1.With out the proxy I can connect to APNS but after adding proxy using ProxyManager.setProxy(host, port) getting error: Communication exception: java.io.IOException: Unable to tunnel through. Proxy returns "HTTP/1.0 200 Ok" 2. Any thoughts what configuration I may be missing on proxy server?

3.

What is the expected output? What do you see instead

Communication exception: java.io.IOException: Unable to tunnel through. Proxy returns "HTTP/1.0 200 Ok"

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

Please provide any additional information below.

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

mwkirk commented 11 years ago

From sype...@gmail.com on July 02, 2012 22:35:24 I suggest you try the current 2.3 build that is in the trunk, as it contains fixes that are related to proxy settings.

If that still doesn't work, you should check for proxy server logs for hints as to what is happening.

mwkirk commented 11 years ago

From sype...@gmail.com on July 13, 2012 14:15:18 I just noticed that your proxy returns "200 OK" instead of "200 Connection Established". The library was looking for "200 connection established" in the response and considered anything else a failure to connect. I have just modified that to look only for "200", and committed the changes in r365. You can download JavaPNS 2.3 Alpha 7 from the Trunk.