diff --git a/http_client.rst b/http_client.rst index bc950a382e8..c8c3094375a 100644 --- a/http_client.rst +++ b/http_client.rst @@ -676,6 +676,7 @@ when the streams are large):: $client->request('POST', 'https://...', [ // ... 'body' => $formData->bodyToString(), + 'headers' => $formData->getPreparedHeaders()->toArray(), ]); If you need to add a custom HTTP header to the upload, you can do::