http://bugs.winehq.org/show_bug.cgi?id=5444
Summary: wininet not sending Content-Length: when posting? Product: Wine Version: 0.9.15. Platform: Other OS/Version: other Status: UNCONFIRMED Severity: normal Priority: P2 Component: wine-net AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
The following post in wine-users was interesting: http://winehq.org/pipermail/wine-users/2006-June/022255.html I reproduce it here so it doesn't fall through the cracks.
Adam Gibson wrote:
"Using an app that uses msinet.ocx. msinet is a dumbed down MS wrapper for wininet and VB use. Running the app native on windows works but when running it through wine 0.9.15 the server replies back with a 411 response. I tried http and https with the same result(decrypted the SSL to make sure).
1 8 1150206672.2493 (0.0006) C>S application_data --------------------------------------------------------------- POST /SomeScript.asp HTTP/1.0 Accept: image/gif Host: renamed.to.hide.the.innocent User-Agent: Microsoft URL Control - 6.00.8862
--------------------------------------------------------------- 1 9 1150206672.2500 (0.0006) S>C application_data --------------------------------------------------------------- HTTP/1.1 411 Length Required Content-Type: text/html Date: Tue, 13 Jun 2006 13:51:12 GMT Connection: close Content-Length: 24
<h1>Length Required</h1>---------------------------------------------------------------
It would appear that wininet should have put the Content-Length in the header. It does when running it on windows."