Closed mansouralex closed 7 years ago
How to send Content-Length in the headers when you send request, also how to decide the Content-Type?
you may send the headers as mentioned in the docs:
$response = HttpClient::get([ 'url' => 'http://some.where.url', 'headers' => ['Content-Length: 12345', 'Content-Type: application/json'] ]);
How to send Content-Length in the headers when you send request, also how to decide the Content-Type?