Sending a POST request without submitting an HTML form

php, post

Solution

Yes, you can. The simpler solution is to use curl. Also, you can just open a socket to the remote server and send raw HTTP request.

See curl examples in the documentation

Problem

I am wondering, is it possible to send an HTTP POST in PHP without using an HTML form. Can this be done internally using PHP? If not, maybe using JavaScript or jQuery?

Original source