http://bugs.winehq.org/show_bug.cgi?id=29093
Bug #: 29093 Summary: Posting data with winhttp fails Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winhttp AssignedTo: wine-bugs@winehq.org ReportedBy: rosslagerwall@gmail.com Classification: Unclassified
Created attachment 37498 --> http://bugs.winehq.org/attachment.cgi?id=37498 test program
Now that http://bugs.winehq.org/show_bug.cgi?id=29004 is complete, the problem is that the actual data that is sent during POST for winhttp is incorrect.
Attached is a test program. It posts some sample data to a webpage which dumps the $_POST variable.
On windows and native winhttp, the output shown is the as the sample data. With the builtin winhttp, a 403 forbidden page is shown and tcpdump and the web server error log show that it tried to post binary data (which is obviously incorrect).
http://bugs.winehq.org/show_bug.cgi?id=29093
Ross Lagerwall rosslagerwall@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Platform|x86 |x86-64 See Also| |http://bugs.winehq.org/show | |_bug.cgi?id=29004
http://bugs.winehq.org/show_bug.cgi?id=29093
Dmitry Timoshkov dmitry@baikal.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |1.3.32
--- Comment #1 from Dmitry Timoshkov dmitry@baikal.ru 2011-11-15 03:58:00 CST --- Assuming you are using Wine git. Next time please fill the Version field above with what 'wine --version' reports.
http://bugs.winehq.org/show_bug.cgi?id=29093
--- Comment #2 from Ross Lagerwall rosslagerwall@gmail.com 2011-11-15 03:59:59 CST --- OK thanks, I wasn't sure what to put when using wine-git.
http://bugs.winehq.org/show_bug.cgi?id=29093
ocean04@suomi24.fi changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ocean04@suomi24.fi
--- Comment #3 from ocean04@suomi24.fi 2011-11-15 04:15:17 CST --- I can confirm, it doesn't work here either (using string). There is a way to fix your code by converting that postdata string to variant / array. (in case this bug is not fixed soon)
http://bugs.winehq.org/show_bug.cgi?id=29093
--- Comment #4 from Hans Leidekker hans@meelstraat.net 2011-11-15 04:40:35 CST --- Created attachment 37500 --> http://bugs.winehq.org/attachment.cgi?id=37500 winhttp: Clean up properly in request_send.
Try this patch.
http://bugs.winehq.org/show_bug.cgi?id=29093
--- Comment #5 from Ross Lagerwall rosslagerwall@gmail.com 2011-11-15 05:59:38 CST --- Thanks, that fixes it.
Cheers
http://bugs.winehq.org/show_bug.cgi?id=29093
Jerome Leclanche adys.wh@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch CC| |adys.wh@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=29093
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |2621e98d04b91ce21d36ac880ac | |e323bd3c6360f Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #6 from Austin English austinenglish@gmail.com 2011-11-16 12:54:17 CST --- (In reply to comment #5)
Thanks, that fixes it.
Cheers
http://source.winehq.org/git/wine.git/commitdiff/2621e98d04b91ce21d36ac880ac...
http://bugs.winehq.org/show_bug.cgi?id=29093
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2011-11-18 13:05:27 CST --- Closing bugs fixed in 1.3.33.