From the PHP Manual:
PUT data comes from stdin:
$putdatafp = fopen("php://input", "r");
Example usage:
$putfp = fopen('php://input', 'r');
$putdata="";
while($data = fread($putfp, 1024))
$putdata .= $data;
fclose($putfp);
More Related Contents:
- PHP cURL HTTP PUT
- How do I make a request using HTTP basic authentication with PHP curl?
- How to get body of a POST in php?
- file_get_contents(): SSL operation failed with code 1, Failed to enable crypto
- How to POST JSON Data With PHP cURL?
- How to implement authorization using a Telegram API?
- Call a REST API in PHP
- How to post JSON to PHP with curl
- Curl and PHP – how can I pass a json through curl by PUT,POST,GET
- RAW POST using cURL in PHP
- REST API – why use PUT DELETE POST GET?
- How to write a REST API?
- How to build a RESTful API?
- Why does the Laravel API return a 419 status code on POST and PUT methods?
- How Follow the Don’t Repeat Yourself Principle When Consuming My Own Laravel API?
- How to enable and use HTTP PUT and DELETE with Apache2 and PHP?
- PHP multipart form data PUT request?
- REST API Authorization & Authentication (web + mobile)
- Laravel form html with PUT method for PUT routes
- GET vs. POST Best Practices
- Handling PUT/DELETE arguments in PHP
- Get “Content-Type” header of request in PHP
- What is the postman-token header attribute in generated code from Postman?
- Using Clean URLs in RESTful API
- How do I restrict JSON access?
- What does the following PHP function serve as?
- Is there a way to use shell_exec without waiting for the command to complete?
- How to check if an array value exists?
- Trying to access array offset on value of type bool in PHP 7.4
- How to avoid resending data on refresh in php