Message158897
this code sends data in a different way if using python 2.6 or python 2.7
>>> import urllib2
>>> url = 'http://server.com/post_image?tid=zoV6LJ'
>>> f = open('test.jpg')
>>> data = f.read()
>>> res = urllib2.urlopen(url, data)
I checked it with wireshark and the data is sent in a different way when using python 2.7
The code works for python2.5 and python2.6 |
|
Date |
User |
Action |
Args |
2012-04-20 23:13:47 | Diego.Manenti.Martins | set | recipients:
+ Diego.Manenti.Martins |
2012-04-20 23:13:47 | Diego.Manenti.Martins | set | messageid: <1334963627.5.0.25860672306.issue14639@psf.upfronthosting.co.za> |
2012-04-20 23:13:46 | Diego.Manenti.Martins | link | issue14639 messages |
2012-04-20 23:13:46 | Diego.Manenti.Martins | create | |
|