A simple scripting language in C++
Ferenc Szontágh
2025-04-19 bc2e09a3b7a4e414814b56be71ec5c540b8eb4d9
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);