[Bug 26586] New: xmlhttprequest basic authentication don't work
wine-bugs at winehq.org
wine-bugs at winehq.org
Tue Mar 29 08:29:30 CDT 2011
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 at winehq.org
ReportedBy: ocean04 at 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;
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list