http://bugs.winehq.org/show_bug.cgi?id=29715
Bug #: 29715 Summary: winhttp method "HEAD" is broken Product: Wine Version: 1.3.37 Platform: x86 URL: http://netikka.net/dev/winhttphead.exe OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winhttp AssignedTo: wine-bugs@winehq.org ReportedBy: ocean04@suomi24.fi Classification: Unclassified
small sample: http://netikka.net/dev/winhttphead.exe
Method HEAD should usually return very quickly, but instead it takes ages for any url I tried.
fhttp:=createoleobject('WinHttp.WinHttpRequest.5.1'); fhttp.open('HEAD', edit1.text, false); fhttp.send(); memo1.text:=fhttp.getallresponseheaders; edit2.text:=inttostr(fhttp.status); edit3.Text:=fhttp.statustext;
Here it fails immediately with ole error
Url: http://javadl.sun.com/webapps/download/GetFile/1.6.0_30-b12/windows-i586/jre...
in winhttp log I see 2 problems. For some reason server returns "302 Moved Temporarily". It tries follow and uses GET method.
winetricks winhttp -> server correctly returns 200