Re: CURL file posting
From: Johannes Schlüter Date: Wed, 02 Jan 2013 15:39:51 +0000 Subject: Re: CURL file posting References: 1 2 3 4 5 6 7 8 Groups: php.internals Request: Send a blank email to [email protected] to get a copy of this message
Stas Malyshev <[email protected]> wrote: >Hi! > >I'm thinking maybe the best solution is to have a new class - say, >CurlFile - and do this: > >$file = new CurlFile("myface.png", "image/png"); >curl_setopt($ch, CURLOPT_POSTFIELDS, array("foo" => "bar", >"picture" => >$file); What I wonder about in this thread: If we struggle here why not take the full step and abstract curl details comletely away and provide something like pecl/http by default instead? johannes
Thread (29 messages)
« previous | php.internals (#64473) | next » |
---|