Merge pull request #650 from isecret/patch-1

examples fixed
This commit is contained in:
Zach Borboa
2020-10-27 18:54:58 -07:00
committed by GitHub
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -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(
+2 -1
View File
@@ -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(
+2 -1
View File
@@ -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(