[patch] for ext/curl (so you can post fields beginning with '@')
| From: | Berenyi Mihaly | Date: | Wed, 23 Sep 2009 16:37:42 +0000 |
| Subject: | [patch] for ext/curl (so you can post fields beginning with '@') | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-45633@lists.php.net to get a copy of this message | ||
hi,
sorry if i'm sending this to the wrong place, but
here's a patch (of the PHP_5_2 branch) that adds an extra option to curl
(CURLOPT_LITERAL_POSTFIELDS).
it is the exact same thing as CURLOPT_POSTFIELDS, except it skips the
check for leading '@' in the postdata, so you can post without fear or
accidentally uploading a file.
hope you like it and include it soon.
bye,
mihaly
--
huf (Berenyi Mihaly) - huf@keszen.hu - http://parawag.net
...........it's life jim, but not as we know it...........
Attachment: [text/x-diff] ext_curl_literal_postfields.patch
Attachment: [text/x-diff] ext_curl_literal_postfields.patch