PHP HTTP Requests

In these tutorials you can learn how to send HTTP requests in PHP.

  1. How to use cURL to send HTTP GET and POST requests from PHP applications.
  2. Tutorial on how to use proxy servers with cURL and PHP
  3. Getting the HTTP response headers with cURL in PHP is not straight forward. There is no build-in way to do this, but we can still cut out the headers from the response message, if CURLOPT_HEADER is true.
  4. How to perform HTTP requests trough proxy servers in PHP.
  5. How to send HTTP requests using the build-in file functions of PHP.
  6. Setting custom HTTP Headers with cURL is useful when changing User Agent or Cookies. Headers can be changed two ways, both using the curl_setopt function.