-
-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Labels
Description
hello..
I'm using MiniBrowser demo and I got no return in one specific request of a webpage.
at the event:
procedure TMiniBrowserFrm.WVBrowser1WebResourceResponseViewGetContentCompleted(
Sender: TObject; aErrorCode: HRESULT; const aContents: IStream;
aResourceID: Integer);
var
TempOLEStream : TOLEStream;
begin
TempOLEStream := nil;
try
// Copy the resource contents into FResourceContents
// The "Save resource as..." menu option will save FResourceContents in an HTML file.
if succeeded(aErrorCode) and assigned(aContents) then
begin
TempOLEStream := TOLEStream.Create(aContents);
TempOLEStream.Position := 0;
if (TempOLEStream.Size > 0) then
begin
SetLength(FResourceContents, TempOLEStream.Size);
TempOLEStream.Read(FResourceContents, TempOLEStream.Size);
end;
end;
finally
if assigned(TempOLEStream) then
FreeAndNil(TempOLEStream);
end;
end;
the variable aErrorCode returns -32000, and aContents = nil...
I tested to debug the event in Firefox and the same link returns a valid json as content...
In the WVBrowser1WebResourceResponseReceived
the header is all ok, even the length of the content.
do you have any idea about this error?