Re: CURL -d
| From: | Stuart Dallas | Date: | Mon, 26 Mar 2012 20:05:16 +0000 |
| Subject: | Re: CURL -d | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317281@lists.php.net to get a copy of this message | ||
On 26 Mar 2012, at 16:45, QI.VOLMAR QI wrote:
> I have this lines:
> curl -H "Content-Type: application/json" -d "hello world" \
>
> "http://api.pusherapp.com/apps/17331/channels/test_channel/events?"\
>
> The option -d is for data. But How I can set it on the PHP CURL extension?
> I have found that if I set something like array('Hello Word', 'name'
> => 'my_name'), for the POST data may occurs. Can you give me a little
> help?
http://bit.ly/H6JwOO
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/