Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - HttpsURLConnection only works once!

HttpsURLConnection only works once!

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

HttpsURLConnection only works once!

Postby auxone » Fri Jan 29, 2010 9:06 pm

I have a HttpsURLConnection class written in core Java that I've recently ported to Android. Interestingly enough though, it works just fine... the first time. On the second time, even if I use the same class, and even if I create a separate instance of it, the connection is never made and getResponseCode() is -1.

Since my class is kinda complex, I tried it with the "solution" I found here: viewtopic.php?p=26514 but I break out the try/catch into a function so I can call it twice. Even then, it only works the first time.

I've been trying different permutations and examples found online (with and without fake certificates) that supposedly work, but all with the same results.

Everything I've tried work perfectly with HttpURLConnection and http:// but when I move it over to https:// and HttpsURLConnection, it only works once per app launch.

Anyone have any ideas? I'm sufficiently frustrated after days of this.

Thanks in advance
auxone
Freshman
Freshman
 
Posts: 7
Joined: Fri Jan 29, 2010 8:02 pm

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 8 guests