python urllib2 data post over https

miamia peterirbizon at gmail.com
Thu May 26 15:46:02 EDT 2011


hello, I am using this code to send data over https with post method:

params='tieto data idu na sevrer\n'
kamodoslat = "https://domena.tld/script.php"
req = urllib2.Request(kamodoslat)
req.add_header('User-Agent', 'agent')
resp = urllib2.urlopen(req, params)

how can I make sure that data were really sent over secured protocol
https and all communcation went through https?



More information about the Python-list mailing list