Add. Post JSON example.

master
Alexey Melnichuk 2017-02-13 11:20:39 +03:00
parent 187f44306f
commit 171aa24120
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
local cURL = require "cURL"
c = cURL.easy{
url = "http://posttestserver.com/post.php",
post = true,
httpheader = {
"Content-Type: application/json";
};
postfields = '{"hello": "world"}';
}
c:perform()