HTTPS/Client-authenticated: Difference between revisions

m
→‎{{header|Wren}}: Another minor change
m (→‎{{header|Wren}}: Minor tidy)
m (→‎{{header|Wren}}: Another minor change)
 
Line 412:
{{libheader|libcurl}}
An embedded program so we can ask the C host to communicate with libcurl for us.
<syntaxhighlight lang="wren">/* HTTPS_clientHTTPS_Client-authenticated.wren */
 
var CURLOPT_URL = 10002
Line 448:
<br>
We now embed this in the following C program, compile and run it.
<syntaxhighlight lang="c">/* gcc HTTPS_clientHTTPS_Client-authenticated.c -o HTTPS_clientHTTPS_Client-authenticated -lcurl -lwren -lm */
 
#include <stdio.h>
Line 548:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "HTTPS_clientHTTPS_Client-authenticated.wren";
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
9,479

edits