Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

anyone experienced with libcurl? C++

Hello, I'm in need of help with libcurl. As I'm not understanding how to do something, even after reading the documentation.
So I basically want to log into a website, and then perform a task of my choice being logged into the account.

I am capable of logging in, and having the cookies saved in a .txt of my choice.
using cookiejar to store cookies in the .txt
https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEJAR.html
and cookiefile to read the cookies and implement them into the next request
https://curl.haxx.se/libcurl/c/CURLOPT_COOKIEFILE.html



I would like to log into an account, and have the cookies saved into the memory, without having to put them in a .txt , and then load it from the .txt
How would I do so?

I've read the following on COOKIEFILE "Given an empty or non-existing file or by passing the empty string ("") to this option, you can enable the cookie engine without reading any initial cookies."


so I do it, but it doesn't work, doesn't let me stay logged in after the first request.
help is appreciated 🤝


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by pmtobefriendOct 23, 2018 11:50 PM 16 481 Oct 23, 2018 11:50 PM
Last Post: ✪ BL4ZE
[C] by RagZorroNov 21, 2017 12:27 PM 0 193 Nov 21, 2017 12:27 PM
Last Post: RagZorro
[C] by stdioSep 14, 2017 01:01 PM 12 541 Sep 14, 2017 01:01 PM
Last Post: stdio