I have done how you suggested. I rewrote it all to use the httpclient directly but I still get the same error and no other information (statuscode -1) javax.net.ssl.SSLPeerUnverifiedException: No peer certificate .
I altered my htaccess and disabled the https rewriteengine and then it worked. So I suppose there is something wrong with the combination of my rewreiteengine and the httpclient. My htacces looks like this:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Nothing fancy.
Any suggestions what it could be? I tryed the links that I try to get with the initializeget and it works in the browser. My PHP script does not log any activity from the App.
So the httpclient doesnt like something about the rewrite.