How to make an HTTP request in PHP?

http, httprequest, php, request, sms

Solution

The easiest way is probably to use cURL. See https://web.archive.org/web/20180819060003/http://codular.com/curl-with-php for some examples.

Problem

I have to send an SMS by making an HTTP request via GET method. The link contains information in the form of GET variables, e.g. ``` http://www.somelink.com/file.php?from=12345&to=67890&message=hello%20there ``` After I run the script it has to be as if someone clicked the link and activated the SMS sending process. I have found some links about get request and curl and what not, it’s all so confusing!

Original source