Hi everyone,
I hope someone can help me! I'm working on some N95 running Python for S60 1.4.1. Untill now the same code has worked. The accused code is the following:
The problem is quite strange! Untill yesterday this code doesn't have given me any problem.Code:import httplib, urllib import socket apid = socket.select_access_point() apo = socket.access_point(apid) socket.set_default_access_point(apo) diz = {'par1' : 1000, 'par2':2000, 'par3':3000} params = urllib.urlencode(diz) headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"} conn = httplib.HTTPConnection("xxx.xxx.xxx.xxx") conn.request("POST", "/script.php", params, headers) response = conn.getresponse() var = response.read() conn.close()From yesterday, it sometimes works, the other times I got (at the bold line) one of the following problems:
File "c:\resource\httplib.py", line 627, in connect
return SSLFile(self._shared, self._ssl, bufsize)
error: (56, 'Connection timed out')
File "c:\resource\socket.py", line 58, in socket
return _socketobject(_realsocketcall(family, type, proto, apo), family)
RuntimeError: Couldn't start RConnection
File "c:\resource\httplib.py", line 627, in connect
return SSLFile(self._shared, self._ssl, bufsize)
error: (0, 'Error')
I thought "maybe it was me, Maybe I have changed something without wanting in the code" BUT I tried also with some backup version of the code (that I know for sure that was working) and it's the same!!!![]()
![]()
I tried with both WLAN and Packet data connection but nothing!![]()
![]()
Thanks a lot
Chiara

From yesterday, it sometimes works, the other times I got (at the bold line) one of the following problems:
Reply With Quote
Thanks a lot for the fast and complete answer!
It has given me the answer immediately and I couldn't believe it because I had already tried to reboot the phone and to change Sim.

