yarj / javapns

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

Proxy tunnelling is not supported #48

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using javapns from behind a proxy.  When attempting to send a push 
notification to gateway.sandbox.push.apple.com it would come back with a 
java.net.UknownHostException.

This was due to my proxy responding with a HTTP 1.1 header which the JSSE does 
not support when using SecureSocket.

To fix the issue I had to implement proxy tunneling within the 
javapns.back.SSLConnectionHelper class.  (see 
http://www.javaworld.com/javaworld/javatips/jw-javatip111.html?page=2)  It 
looks like this was previously supported was back in Feb 2010 in rev 24 of 
SSLConnectionHelper.

The changes I made to the source to support proxy tunneling are attached.

Original issue reported on code.google.com by dave.kn...@gmail.com on 20 Apr 2011 at 8:13

Attachments:

GoogleCodeExporter commented 8 years ago
Changes have been applied to version 1.6.6

Original comment by idbill.p...@gmail.com on 22 Apr 2011 at 9:43