|
| CDC HTTPConnection error: Bad Socket |
 |
Fri, 29 Sep 2006 15:30:30 +020 |
Hi,
I try to make an HTTPConnection in CDC/Symbian9.1/P990i. The code runs
well on emaulator, but on my phone it throws an exception, bad socket.
I have a DevCert with all of cabailities, but the signed app doesn't
works on device.
The code withaout ttry-catch blocks:
URL url = new URL("http://www.example.com");
HttpURLConnection http = (HttpURLConnection)Connector.open(url);
http.setRequestMethod("POST");
if (http.getResponseCode() == HttpURLConnection.HTTP_OK)
{
iStrm = http.getInputStream();
int length = http.getContentLength();
...
}
Any help?
thax,
|
| Post Reply
|
|
|
|
|
|
|
|
|
|