Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94182 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76217 invoked from network); 21 Jun 2016 20:31:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jun 2016 20:31:50 -0000 Authentication-Results: pb1.pair.com header.from=me@daveyshafik.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=me@daveyshafik.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain daveyshafik.com from 209.85.220.177 cause and error) X-PHP-List-Original-Sender: me@daveyshafik.com X-Host-Fingerprint: 209.85.220.177 mail-qk0-f177.google.com Received: from [209.85.220.177] ([209.85.220.177:34121] helo=mail-qk0-f177.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/B5-43024-534A9675 for ; Tue, 21 Jun 2016 16:31:50 -0400 Received: by mail-qk0-f177.google.com with SMTP id t127so38129274qkf.1 for ; Tue, 21 Jun 2016 13:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daveyshafik-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Bxyw/0NIO7eapSxCxDfiFU58yeKxMNC4NNHmnsxAdLw=; b=k1xsUTXrD5MMEiJWyQgtGqEZsp3qc5OGEcwnnizc5K2ldWMgd+nBZoUefdOJJo7b6L 12VgBm3WRlzOozGxUx2GAOLQEWLZq/21lHMBdJ9T/yej4r658kT74T14xTNIAql/zur6 CuR0094PndRJ/XrZMPxYIPk6EHa4yH7hIp43Gtf+krNUzON4ITdsQ/iLaQVet3QUW65D xmvVQjyZSVZ2KV+UiL1M6mQYFGWGpdMW9k2bLtoF935KQrkbcDsWLahAqizTKpjmNQ1i WMB2uruaC6h9jOFDyEH5SXstRNPy9si7tE25/z9XO8IZmHM3FXI2vb5IuQV1gCbe9DDZ qfJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Bxyw/0NIO7eapSxCxDfiFU58yeKxMNC4NNHmnsxAdLw=; b=hc2UrGxD4gBPphgsrfoPX5c1jsDLv0Z1DKn5n29e/7bKpya6UAf0o65wqWdl2Bu6C4 IpJ6QHKSFdc5OOYMEYIRE4mPzlJehqMXriB9drEej3JaaTLBbUnoX+7NlBpCpmgREkOM 1u7WDIhKRhPI2zUWRcUnMZkz+/b5+sN8T6VUIOvV2qvz1/H+8tg2LLHvSVfw92kKBUWG Z72YQYuyy7F8bHNlbZS+4Z4Wjsb2vmuNC+4O/eEB9ZcOh9ireRPYlQy9dbtBwFqOjx71 VGO7TckoiX+8EIB9Hi2ATciifjFyEriBwZ/JRDHbXDYPpsE2N9QC1T6oLkBO3TGDjDCL WRpw== X-Gm-Message-State: ALyK8tJP0NU+/+Df29X2jFUo1v63UKgwAfBvJRPCaNyfofMTQmp35PeiNyFOo3NHDEiPjcKLdRtG6dP5B4i+HFnF X-Received: by 10.55.70.66 with SMTP id t63mr33598599qka.162.1466541106868; Tue, 21 Jun 2016 13:31:46 -0700 (PDT) MIME-Version: 1.0 Sender: me@daveyshafik.com Received: by 10.237.54.225 with HTTP; Tue, 21 Jun 2016 13:31:46 -0700 (PDT) In-Reply-To: References: Date: Tue, 21 Jun 2016 13:31:46 -0700 X-Google-Sender-Auth: QcM1FGyoHeyZ9vRsZaVvFI2NI7M Message-ID: To: Alexander Moskalev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a114aabccb955ec0535cfb5c1 Subject: Re: [PHP-DEV] Re: Send files in CURL from string From: davey@php.net (Davey Shafik) --001a114aabccb955ec0535cfb5c1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Jun 21, 2016 at 11:38 AM, Alexander Moskalev 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 =E2=80=94 I wonder if it's possible to make it so that y= ou can pass a filename, or a valid stream (or stream URL) to CURLFile =E2=80=94 th= is 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 --001a114aabccb955ec0535cfb5c1--