We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 187f443 commit 171aa24Copy full SHA for 171aa24
1 file changed
examples/cURLv3/post_json.lua
@@ -0,0 +1,12 @@
1
+local cURL = require "cURL"
2
+
3
+c = cURL.easy{
4
+ url = "http://posttestserver.com/post.php",
5
+ post = true,
6
+ httpheader = {
7
+ "Content-Type: application/json";
8
+ };
9
+ postfields = '{"hello": "world"}';
10
+}
11
12
+c:perform()
0 commit comments