A simple scripting language in C++
Ferenc Szontágh
2025-04-19 26263ab9055d2ce4f6b1ec934949bcea240b1f29
1
2
3
4
5
6
7
8
string $url = "https://jsonplaceholder.typicode.com/posts";
 
string $postData = "{\"title\":\"foo\",\"body\":\"bar\",\"userId\":1}";
 
printnl("Posting data: '",$postData,"' to URL: ", $url);
string $response = curlPost($url, $postData);
 
printnl("Response: ", $response);