homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:47Diego.Manenti.Martinssetrecipients: + Diego.Manenti.Martins
2012年04月20日 23:13:47Diego.Manenti.Martinssetmessageid: <1334963627.5.0.25860672306.issue14639@psf.upfronthosting.co.za>
2012年04月20日 23:13:46Diego.Manenti.Martinslinkissue14639 messages
2012年04月20日 23:13:46Diego.Manenti.Martinscreate

AltStyle によって変換されたページ (->オリジナル) /