From 5a3a4cca9d3cce4cce4aae633b37db9283e02664 Mon Sep 17 00:00:00 2001 From: Mao Wang Date: Wed, 28 Oct 2020 09:31:03 +0800 Subject: [PATCH] update examples --- examples/post_json_array_response.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/post_json_array_response.php b/examples/post_json_array_response.php index 8e4c84a..37b6f51 100644 --- a/examples/post_json_array_response.php +++ b/examples/post_json_array_response.php @@ -5,7 +5,8 @@ use Curl\Curl; // curl \ // -X POST \ -// -d "{"id":"1","content":"Hello world!","date":"2015-06-30 19:42:21"}" \ +// -H 'Content-Type:application/json' \ +// -d '{"id":"1","content":"Hello world!","date":"2015-06-30 19:42:21"}' \ // "https://httpbin.org/post" $data = array(