XmlHttpObject

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
delphi
Level 2
Level 2
Posts: 17
Joined: Thu Sep 02, 2010 5:44 am

XmlHttpObject

Post by delphi »

Hello!

Is there a reason why applications using xmlhttprequest don't work?

Simple Delphi code.

Uses comobj;

procedure TForm1.Button1Click(Sender: TObject);
var xmlhttp: variant;
begin
xmlhttp:=createoleobject('MSXML2.XMLHTTP.3.0');
xmlhttp.open('GET', edit1.text, true);
xmlhttp.send();
while (xmlhttp.readystate<>4) do application.processmessages;
memo1.lines.add(xmlhttp.responsetext);
end;

Screen cap: http://netikka.net/dev/ole.jpg
Here is zipped exe: http://netikka.net/dev/ole.zip

Click ok -> OLE error 800401F3 (Ubuntu 10.04, Wine 1.31)

Works fine with any Windows.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Try 'winetricks msxml3 ie6', that worked around the problem for me.

I filed
http://bugs.winehq.org/show_bug.cgi?id=24242
and
http://bugs.winehq.org/show_bug.cgi?id=24243
for these problems.
delphi
Level 2
Level 2
Posts: 17
Joined: Thu Sep 02, 2010 5:44 am

Post by delphi »

Using winetricks its fine! 8)

Bug now seems to be "fixed" 1.35. But example still doesn't work good. Often it gives empty response, sometimes get only part of the page HTML :roll:

Btw, here is another example that doesn't work. Just try to use..

http://bsalsa.com/Downloads/EmbeddedWB_ ... e_File.zip
DaVince
Level 8
Level 8
Posts: 1099
Joined: Wed Oct 29, 2008 4:53 pm

Post by DaVince »

delphi wrote:Using winetricks its fine! 8)

Bug now seems to be "fixed" 1.35.
Is that 1.1.35 (really old) or 1.3.5 (currently the latest)?
delphi
Level 2
Level 2
Posts: 17
Joined: Thu Sep 02, 2010 5:44 am

Post by delphi »

Latest 1.35. (any other version you get ole error)

Did you try it, does it work for you?

Problem could also be character encoding related, because it works if url contains something simple..

Anyway, looks like object was only partially implemented. Other members

http://msdn.microsoft.com/en-us/library/ms535874.aspx
delphi
Level 2
Level 2
Posts: 17
Joined: Thu Sep 02, 2010 5:44 am

Post by delphi »

Simple application in post #1 still doesn't work (Wine 1.3.13)
User avatar
dimesio
Moderator
Moderator
Posts: 13367
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

delphi wrote:Simple application in post #1 still doesn't work (Wine 1.3.13)
The two bugs Dan filed have both been closed as fixed, and you yourself posted above that it was fixed in 1.3.5. If this is a regression you need to run a regression test and file a bug for that.
Locked