Skip to content

Commit

Permalink
docs: improve sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Jul 31, 2024
1 parent ceb26a5 commit a2dffb3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions user_guide_src/source/libraries/curlrequest/028.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php

$post_data = [
'foo' => 'bar',
'userfile' => new \CURLFile('/path/to/file.txt'),
];
$client->request('POST', '/post', [
'multipart' => [
'foo' => 'bar',
'userfile' => new \CURLFile('/path/to/file.txt'),
],
]);

0 comments on commit a2dffb3

Please sign in to comment.