From 0982719743b8695516b04e599bb4dff75a4ee4bb Mon Sep 17 00:00:00 2001 From: Mao Wang Date: Wed, 28 Oct 2020 09:31:37 +0800 Subject: [PATCH] update examples --- examples/post_json_manual_encoding.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/post_json_manual_encoding.php b/examples/post_json_manual_encoding.php index f2996d1..e886b90 100644 --- a/examples/post_json_manual_encoding.php +++ b/examples/post_json_manual_encoding.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 = json_encode(array(