Add. Post JSON example.
parent
187f44306f
commit
171aa24120
|
@ -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()
|
Loading…
Reference in New Issue