Request an external URL


I started Yii recently for a small project and I’m dealing with a problem.

I want to load an external web page in background (I don’t care about the return).

I found many ways to do this with ajax but only on project pages.

I have to send the request with POST.

Do you know how can I do ?

Many thanks


French version of this topic.

You cannot load with ajax external page, is a security policy of the browser.

you can use the function getjson for it, take a look at the jquery documentation.

P.s: welcome to the forum