hengsokchamroeun / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

Trying to use proxy: getting error #131

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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 reported on code.google.com by sdhondi...@gmail.com on 28 Jun 2012 at 8:14

GoogleCodeExporter commented 8 years ago
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.

Original comment by sype...@gmail.com on 2 Jul 2012 at 10:35

GoogleCodeExporter commented 8 years ago
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.

Original comment by sype...@gmail.com on 13 Jul 2012 at 2:15