php - Can I send requests to pages in other websites using POST? -


I have two servers running jsp and php I call the PHP page to get an output from the PHP page Want to I tried to use simple Ajax and Jquery-Ajax, it does not seem to work. Why?

AJAX can not request pages from the sites present in different servers. This will make it a cross-side scripting attack. Therefore, you only have to go through your server side code for PHP you can use curl to get information from other pages. Now you can use the same AJAX script and link it to the PHP page with curl. Curl documentation can be found, if you give it a google on it.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -