Commit graph

7 commits

Author SHA1 Message Date
tankorsmash
f76c284ae9 move copypostfields to the pointer options; fix accidentally reverting part of test 2025-03-16 12:32:00 -04:00
tankorsmash
b291110ffa fix POST data not working without string literals
https://curl.se/libcurl/c/curl_easy_setopt.html

Strings passed to libcurl as 'char *' arguments, are copied by the library; the string storage associated to the pointer argument may be discarded or reused after curl_easy_setopt returns. The only exception to this rule is really CURLOPT_POSTFIELDS
2025-03-16 12:18:34 -04:00
a72fe043b2 Format FFI code 2023-10-02 18:25:09 +02:00
de7eb31ed0 Refactor request building 2023-10-02 13:33:52 +02:00
e8047c4b0c Rename options→curlOptions, info→curlInfo 2023-10-01 17:51:09 +02:00
8c88497fdf Add POST requests 2023-10-01 17:46:14 +02:00
9bb42177d8 Initial commit: GET requests 2023-10-01 17:01:26 +02:00