HTTPS/Authenticated: Difference between revisions

m
→‎{{header|Wren}}: Another minor change
m (Added language identifier.)
m (→‎{{header|Wren}}: Another minor change)
 
(One intermediate revision by the same user not shown)
Line 756:
{{libheader|libcurl}}
An embedded program so we can ask the C host to communicate with libcurl for us.
<syntaxhighlight lang="ecmascriptwren">/* https_authenticatedHTTPS_Authenticated.wren */
 
var CURLOPT_URL = 10002
Line 789:
<br>
We now embed this in the following C program, compile and run it.
<syntaxhighlight lang="c">/* gcc https_authenticatedHTTPS_Authenticated.c -o https_authenticatedHTTPS_Authenticated -lcurl -lwren -lm */
 
#include <stdio.h>
Line 899:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "https_authenticatedHTTPS_Authenticated.wren";
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
9,476

edits