Message158897
| Author |
Diego.Manenti.Martins |
| Recipients |
Diego.Manenti.Martins |
| Date |
2012年04月20日.23:13:46 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334963627.5.0.25860672306.issue14639@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| 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 |
|