Cannot edit cookies.
After enabling enable_cookies, trying to edit an existing (automatically set) cookie does not work. cookie= has no affect; it does not alter the stored cookie.
Tried with curb 1.0.5 on Ruby 3.1
I think this PR will address this issue: https://github.com/taf2/curb/pull/455
@dElogics you should understand the difference between custom cookies ('CURLOPT_COOKIE') and cookies in the internal engine (CURLOPT_COOKIELIST). The first ones are what cookies= sets and cookies returns. The last ones are where cookies from Set-Cookie go, what cookielist returns and what #455 is gonna let manipulate.
See this.
Also note that cookies = nil has no effect in curb, use cookies = ''; nil also doesn't work well with cookiefile and cookiejar, maybe it should be fixed.
@dElogics you should understand the difference between custom cookies ('CURLOPT_COOKIE') and cookies in the internal engine (
CURLOPT_COOKIELIST). The first ones are whatcookies=sets andcookiesreturns. The last ones are where cookies fromSet-Cookiego, whatcookielistreturns and what #455 is gonna let manipulate.See this.
Also note that
cookies = nilhas no effect in curb, usecookies = ''; nil also doesn't work well withcookiefileandcookiejar, maybe it should be fixed.
Thanks for clarifying. I tried it out. Maybe the documentation must be updated?