Curl Custom Headers [PHP Code]

An example of posting a custom header with Curl. To add a custom header to curl, you need to pass the -H "header: value" command line parameter to the curl request. The target url is passed as the first parameter. The PHP code was automatically generated for the Curl Custom Headers example.
Loading...