PHP HTTP Requests

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

  1. 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.
  2. 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.
  3. Tutorial on how to use proxy servers with cURL and PHP
  4. How to use cURL to send HTTP GET and POST requests from PHP applications.
  5. How to send HTTP requests using the build-in file functions of PHP.
  6. How to perform HTTP requests trough proxy servers in PHP.