We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37e5229 + c0a83fb commit 7af2c35Copy full SHA for 7af2c35
http_client.rst
@@ -662,6 +662,7 @@ when the streams are large)::
662
$client->request('POST', 'https://...', [
663
// ...
664
'body' => $formData->bodyToString(),
665
+ 'headers' => $formData->getPreparedHeaders()->toArray(),
666
]);
667
668
If you need to add a custom HTTP header to the upload, you can do::
0 commit comments