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 ad75077 + 0251e93 commit 7e11df0Copy full SHA for 7e11df0
http_client.rst
@@ -619,7 +619,7 @@ A generator or any ``Traversable`` can also be used instead of a closure.
619
620
To submit a form with file uploads, pass the file handle to the ``body`` option::
621
622
- $fileHandle = fopen('/path/to/the/file' 'r');
+ $fileHandle = fopen('/path/to/the/file', 'r');
623
$client->request('POST', 'https://...', ['body' => ['the_file' => $fileHandle]]);
624
625
By default, this code will populate the filename and content-type with the data
0 commit comments