go-curl icon indicating copy to clipboard operation
go-curl copied to clipboard

How store all Cookies in a file?

Open QuestionPython opened this issue 8 years ago • 1 comments

Hello, How store all Cookies in a file? like php :

<?php
curl_setopt ($ch, CURLOPT_COOKIEFILE,"cookie.txt");
?>

How can do this Using Go? @andelf

QuestionPython avatar May 07 '17 14:05 QuestionPython

This is how I do it: easy.Setopt(curl.OPT_COOKIEJAR, fmt.Sprintf("tmp/cookiejar_%s.txt", task.CookieJarPath)) easy.Setopt(curl.OPT_COOKIEFILE, fmt.Sprintf("tmp/cookiejar_%s.txt", task.CookieJarPath))

reneManqueros avatar Dec 14 '20 22:12 reneManqueros