AJAX proxy works other way. You call your proxy action via AJAX, this action call other server via cURL and output result.
On Oct 14, 10:59 pm, "[email protected]" <[email protected]> wrote: > Hi > I must do a ajax call to an external site. > I use a proxy to circumvent the Same Origin Policy. > My action-controller proxy is: > > function proxy($url) { > $this->redirect($url,301,true); > > } > > In my view when I do the ajax call I get the error : > > Error: Http:Controller could not be found. > > If I call directly the action "proxy" it works correctly. > It seems that CakePHP can't do ajax call external. > Is it correct or I do some mistake? > Many Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
