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.
1 parent ceb26a5 commit a2dffb3Copy full SHA for a2dffb3
user_guide_src/source/libraries/curlrequest/028.php
@@ -1,6 +1,8 @@
1
<?php
2
3
-$post_data = [
4
- 'foo' => 'bar',
5
- 'userfile' => new \CURLFile('/path/to/file.txt'),
6
-];
+$client->request('POST', '/post', [
+ 'multipart' => [
+ 'foo' => 'bar',
+ 'userfile' => new \CURLFile('/path/to/file.txt'),
7
+ ],
8
+]);
0 commit comments