PHP HTTP Requests
In these tutorials you can learn how to send HTTP requests in PHP.
- Tutorial on how to use proxy servers with cURL and PHP
- When using file_get_contents to perform HTTP requests, the server response headers is stored in a reserved variable after each successful request; we can iterate over this when we need to access individual response headers.
- 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.
- 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.
- How to send HTTP requests using the build-in file functions of PHP.
- How to perform HTTP requests trough proxy servers in PHP.
- How to use cURL to send HTTP GET and POST requests from PHP applications.
- How to send a HTTP HEAD request using cURL in PHP.