Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

wget keep session equivalence curl

Tags:

bash

curl

wget

I am creating a script which should be working also in MAC and I would like to know the equivalence of the following command line using curl command :

wget --keep-session-cookies --load-cookies=cookies.txt --referer=website.com http://website.com/folder/$count

Thanks in advance.

like image 586
molwiko Avatar asked Mar 27 '13 10:03

molwiko


1 Answers

Try this:

curl -b cookies.txt -c cookies.txt -e website.com http://website.com/folder/$count
like image 124
kev Avatar answered Nov 11 '22 22:11

kev