HI,
I'm trying to have a POST request using URLOpener with this code( becouse i use simplejson):

##s = simplejson()
##urlopener = urllib.URLopener()
##urlopener.addheaders = (('Host','posytron.dyndns.org:4014'), ('Content-Type','application/json; charset=UTF-8'))
##dati={"username":"giacomo","password":"zero123"}
##data=s.dumps(dati)
##url='http://posytron.dyndns.org:4014/json/authenticate'
##f=urlopener.open(url,data)

but the Python Shell shows me this :

Traceback (most recent call last):
File "C:\Documents and Settings\Giacomo\Desktop\s60-simplejson3.py", line 771, in <module>
f=urlopener.open(url,data)
File "C:\Python25\lib\urllib.py", line 192, in open
return getattr(self, name)(url, data)
File "C:\Python25\lib\urllib.py", line 336, in open_http
return self.http_error(url, fp, errcode, errmsg, headers, data)
File "C:\Python25\lib\urllib.py", line 351, in http_error
return self.http_error_default(url, fp, errcode, errmsg, headers)
File "C:\Python25\lib\urllib.py", line 357, in http_error_default
raise IOError, ('http error', errcode, errmsg, headers)
TypeError: EnvironmentError expected at most 3 arguments, got 4


Could you help me,please?
thanks.