# [patch] for ext/curl (so you can post fields beginning with '@')

- Thread: https://externals.io/message/45633
- Original archive: https://news-web.php.net/php.internals/45633
- Started by Berenyi Mihaly on 2009-09-23T16:37:42+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45633 — Berenyi Mihaly — 2009-09-23T16:37:42+00:00

URL: https://externals.io/message/45633#45633

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...........

---

## #45634 — Pierre Joye — 2009-09-23T20:39:24+00:00

URL: https://externals.io/message/45633#45634 · In reply to: #45633

hi,

Please provide a patch against trunk and 5.3 (could be added to 5.3.2
later). It will be nice if you can open a bug report as well in
http://bugs.php.net so we can keep it in our radar.

Thanks for your work!

Cheers,


> 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...........
>
> --
> 
> 
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org
