H
H
HarpyWar2012-01-25 21:40:52
PHP
HarpyWar, 2012-01-25 21:40:52

Cross-domain Ajax on jQuery through PHP proxy?

1) There is a RESTful web service that needs to be called via ajax on the client side. Is there a ready-made PHP script to specify the url in the "url" parameter in JQuery and pass it to the PHP script so that it correctly handles all possible transfer methods: GET, POST, PUT, DELETE? I am looking for ready and tested, so as not to write a bike.

2) Is it possible to directly and completely (not only GET) use the REST service on the client side, given that I have access to edit web service files? What if he's a stranger?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
HarpyWar, 2012-01-28
@HarpyWar

Thanks everyone, I found a ready-made proxy script benalman.com/projects/php-simple-proxy/

A
Anatoly, 2012-01-25
@taliban

php.net/manual/ru/book.curl.php you should not look for a ready-made solution for every bunch, you just need to specify the method and give the parameters.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question