Re: Re: Send files in CURL from string
| From: | Davey Shafik | Date: | Tue, 21 Jun 2016 20:31:46 +0000 |
| Subject: | Re: Re: Send files in CURL from string | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94182@lists.php.net to get a copy of this message | ||
On Tue, Jun 21, 2016 at 11:38 AM, Alexander Moskalev <irker@irker.net>
wrote:
> Sorry for annoying mail, but it's really small and simple feature, which
> can be implemented by few lines of curl options. But with API realisation
> questions.
> Please, help me to choose correct way, and I will create new pull-request
> with code and tests.
>
Hi Alexander,
Thank you for this — I wonder if it's possible to make it so that you can
pass a filename, or a valid stream (or stream URL) to CURLFile — this would
solve the issue, as you can use a memory stream, have no extra classes, no
ambiguity of "is it a filename" vs "is it a string of data".
Thoughts?
- Davey