07-17-2012 03:11 PM
I am using "HttpConnectionFactory" class available online for making http connection.
I tried to create HTTPConnection on a particular URL. Connection making is fine(without any exception).
But, when i try to obtain response code, it throws following exception.
net.rim.device.api.io.ConnectionClosedException: Not connected
Not, able to figure out the reason behind it??
Thanks in advance..
07-17-2012 08:35 PM
Unless you are using https,,the conneciton will not be attempted until you request the response code. So it is only then it is finding a problem.
Check your URL and the connection method you are trying to use. Check that the browser can see your URL.
07-18-2012 01:06 AM
But, forgot to mention
a) This problem comes only on blackberry simulator not on handheld(tested 9900). It make me doubtful of some condition which might throw exception on any particular device.
b) I am just providing sample url for ur reference(it's not actual/working url)
URL is like this:
Extra string is like:
Can there be any issue because of presence of "." and ";" in this url ??