http://bugs.winehq.org/show_bug.cgi?id=26586
Summary: xmlhttprequest basic authentication don't work Product: Wine Version: 1.3.16 Platform: x86 URL: http://netikka.net/dev/basicauth.exe OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: ocean04@suomi24.fi
Testsite/url: http://browserspy.dk/password-ok.php
Simple xmlhttprequest example: http://netikka.net/dev/basicauth.exe
Username and password is included in request. But response shows you did not give username / password. Works ofcourse in Windows.
Source:
procedure TForm1.Button1Click(Sender: TObject); var xmlhttp: variant; s: string; begin xmlhttp:=createoleobject('MSXML2.XMLHTTP.3.0'); xmlhttp.open('GET', edit1.text, true, edit2.text, edit3.text); xmlhttp.send(); while(xmlhttp.readystate<>4) do application.processmessages; s:=xmlhttp.responsetext; s:=copy(s, ansipos('<tbody>', s), length(s)-ansipos('<tbody>', s)); s:=copy(s, 1, ansipos('</tbody>', s)-1); memo1.text:=s; if (ansipos(edit2.text, s)=0) or (ansipos(edit3.text, s)=0) then showmessage('Failed!'); end;