(06-27-2019, 09:21 AM)Alexandre Machado Wrote: Do you have any content handler registered as a session start handler?
No, I don't
(06-27-2019, 08:57 AM)Alexandre Machado Wrote: Hi Ioan,
I don't recommend you remove it because it will raise an exception. But it would be good if you keep the UserAgent string so we can actually see which was the original browser UA string. I'm inclined to think it is a bot...
Just save the original UA string before freeing the original browser and set it again, after creating a new one, like:
procedure TIWServerController.IWServerControllerBaseBrowserCheck(aSession: TIWApplication; var rBrowser: TBrowser);
var
ua: string;
begin
ua := rBrowser.UserAgent;
rBrowser.Free;
rBrowser := TFirefox.Create(TFireFox.MIN_VERSION);
rBrowser.UserAgent := ua;
end;
Done, modified the code to keep the original UserAgent string.