Replace:
$authorization = "Bearer 080042cad6356ad5dc0a720c18b53b8e53d4c274"
with:
$authorization = "Authorization: Bearer 080042cad6356ad5dc0a720c18b53b8e53d4c274";
to make it a valid and working Authorization header.
More Related Contents:
- PHP, cURL, and HTTP POST example?
- Can PHP cURL retrieve response headers AND body in a single request?
- How do I make an asynchronous GET request in PHP?
- Setting Curl’s Timeout in PHP
- Manually parse raw multipart/form-data data with PHP
- Persistent/keepalive HTTP with the PHP Curl library?
- How to include Authorization header in cURL POST HTTP Request in PHP?
- PHP multipart form data PUT request?
- How can I get the destination URL using cURL?
- We need a script to create a backup of all the files, database and email using third party Cpanel details in PHP
- Forcing to download a file using PHP
- How to POST JSON Data With PHP cURL?
- how to upload file using curl with PHP [closed]
- Detecting request type in PHP (GET, POST, PUT or DELETE)
- Send file via cURL from form POST in PHP
- How do I install cURL on Windows?
- Scrape web page contents
- PHP cURL error code 60
- Send post request using Volley and receive in PHP
- How do I install the ext-curl extension with PHP 7?
- Adding subscribers to a list using Mailchimp’s API v3
- Request headers bag is missing Authorization header in Symfony 2?
- Add http:// prefix to URL when missing
- PHP cURL how to add the User Agent value OR overcome the Servers blocking cURL requests?
- understanding php curl_multi_exec
- How can I connect to a Tor hidden service using cURL in PHP?
- Can I do a CURL request to the same server?
- How do I send a HTTP/2 POST request in PHP
- Asynchronous HTTP requests in PHP
- Sending XML data using HTTP POST with PHP