Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How store all Cookies in a file? #58

Open
QuestionPython opened this issue May 7, 2017 · 1 comment
Open

How store all Cookies in a file? #58

QuestionPython opened this issue May 7, 2017 · 1 comment

Comments

@QuestionPython
Copy link

QuestionPython commented May 7, 2017

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

@reneManqueros
Copy link

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants