Commit graph

12 commits

Author SHA1 Message Date
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
772f92037f Return redirect count in response object 2023-10-02 18:24:46 +02:00
fec113e48f Remove useless SetPost function 2023-10-02 18:09:53 +02:00
fa31c0c58b Fix session reset 2023-10-02 18:09:33 +02:00
29d6c7bc02 Create the slist when we open a session for the first time 2023-10-02 16:35:55 +02:00
de7eb31ed0 Refactor request building 2023-10-02 13:33:52 +02:00
d37b15ab2b Refactor error handling 2023-10-01 18:38:45 +02:00
5b22260f28 Refactor GET and POST requests 2023-10-01 18:14:54 +02:00
4ff2099e99 Remove temp header files after request 2023-10-01 17:54:30 +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