curl-users
trying to get/generate cookies
Date: Thu, 5 May 2016 18:22:09 -0400
Hi.
Targeting a given site. I do two (2) curls in the hopes of generating
cookies with the 1st curl, that would then drive the 2nd curl.
However, I can't seem to generate cookies at all.
On a clean FF, Ie, delete cookies, using Firebug, I can use the 1st url,
which generates cookies, and can then use the 2nd url to get the page..
Any pointers on what's wrong????
Thanks
running centos 6.5
echo "" > aa.lwp
curl -vvv -A 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Firefox/38.0' -H 'Host: www.bkstr.com' -H -H 'Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H
'Accept-Language: en-US,en;q=0.5' -H 'Connection: keep-alive'
--cookie-jar aa.lwp --cookie aa.lwp -L '
http://www.bkstr.com/missouristatestore/home'
curl -vvv -A 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Firefox/38.0' -H 'Host: www.bkstr.com' -H -H 'Accept:
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' -H
'Accept-Language: en-US,en;q=0.5' -H 'Connection: keep-alive'
--cookie-jar aa.lwp --cookie aa.lwp -L '
http://www.bkstr.com/webapp/wcs/stores/servlet/CourseMaterialsResultsView?catalogId=10001&categoryId=9604&storeId=10875&langId=-1&programId=529&termId=21601&divisionDisplayName=%20&departmentDisplayName=ACC&courseDisplayName=109§ionDisplayName=701&demoKey=d&purpose=browse
'
-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-users
FAQ: https://curl.haxx.se/docs/faq.html
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-05-06