#
e727919b |
| 26-Nov-2020 |
Alexander Moskalev |
cURL: make possible to send file from buffer string Add CURLStringFile class which works similarly to CURLFile, but uploads a file from a string rather than a file. This avoids the n
cURL: make possible to send file from buffer string Add CURLStringFile class which works similarly to CURLFile, but uploads a file from a string rather than a file. This avoids the need to create a temporary file, or use of a data:// stream. Basic usage: $file = new CURLStringFile($data, 'filename.txt', 'text/plain'); curl_setopt($curl, CURLOPT_POSTFIELDS, ['file' => $file]); Closes GH-6456.
show more ...
|