[ptt-users] setFile corrupting data on multi-part HTTP POST?
Friedman, Seth
sfriedman at videoegg.com
Wed Dec 13 13:44:33 PST 2006
Hi,
Two questions.
(1)
With the following excerpt of code,
self.body.setFile(filetoupload, "video/x-ms-wmv", "Filedata")
(..bunch of parameters..)
self.response = self.http.connect()
I'm seeing the source and received binary data differ. The filesizes
are identical, but hex 90s are all converted to hex 3F.
Is there an alternative to setFile() that would be more suited for
binary data?
(2)
In testmaker, the parts to the multi-part POST are generated seemingly
independent of the order that I add parameters. Regardless of whether
I put the setFile call at the beginning or end of a series of
self.body.addParameter() calls, I'm seeing the file POSTed first of the
parts of the multi-part post. Looking at the RFC (2388
http://www.ietf.org/rfc/rfc2388.txt sec 5.5) it seems like this might
actually matter. Is there a way that I can control ordering that the
parts of a multi part post works?
Thanks!
seth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cake.pushtotest.com/pipermail/users/attachments/20061213/e0a68f76/attachment.htm
More information about the Users
mailing list