Question

I've made a simple web-service that returns geolocation, and it works just fine when it requests from IE10, Chrome, Firefox. (all of them are latest versions) But, if I call same request from Delphi's (ver 7) TWebBrowser, there is response: "request is not supported by your browser" (or something like this).

It seems to me that it could be a HTML5 issue, which is not supported by Delphi's TWebBrowser component.

Does anyone have an idea?

Thanks in advance

Was it helpful?

Solution

TWebBrowser is just a thin wrapper for Internet Explorer's core engine via ActiveX. So whatever version of IE you have installed, that is the same version that TWebBrowser should be using and representing itself to websites, and being the same core engine, it should support all/most of the same features that the IE browser app supports. So it does not make sense for the IE10 browser app to work correctly but TWebBrowser to not work. You will have to use a packet sniffer, like Wireshark or Fiddler, to see what User-Agent header TWebBrowser is actually sending and see whether it is different than what IE10 sends.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top