TWebHttpRequest problems

I'm having a strange problem using TWebHttpRequest.


Using the Simple Service example, it works fine. 

I create a new project, with just a button to Execute it, a label, and a TWebHttpRequest, give it a url of 'http://www.google.com', and wire up the OnResponse to assign 'Done' to the label.

Press the button, and nothing happens.

If I replace the url with the Simple Service example (https://jsonplaceholder.typicode.com/comments) , then it works fine. Change it to anything else, and it doesn't work.

Am I missing some minimum headers or something?

Stephen 



One tip for anyone interested. My obvious goal is to consume a webservice, and if you get it to allow CORS, then you're away. 



As background information, see:

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

CORS plays a critical role in cross origin HTTP requests, so take this in account when wanting to use this for TMS WEB Core applications