cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: trying to get/generate cookies

From: bruce <badouglas_at_gmail.com>
Date: Thu, 5 May 2016 18:55:15 -0400

Hi Thanks for the eyeballs on my typos..

However, running the curls.. still don't get cookies..

Any thoughts?

As I stated and the weird thing, I can clear cookies in FF, and use the 1st
url, and generate cookies.. As far as I can tell, I'm replicating the
traffic/data I see from livehttpheaders over the wire...

echo "" > aa.lwp
curl -vvv -A 'Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Firefox/38.0' -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 '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&sectionDisplayName=701&demoKey=d&purpose=browse
'

On Thu, May 5, 2016 at 6:33 PM, Daniel Stenberg <daniel_at_haxx.se> wrote:

> On Thu, 5 May 2016, bruce wrote:
>
> curl -vvv
>>
>
> One is enough, three makes no difference.
>
> -H 'Host: www.bkstr.com'
>>
>
> No need, curl creates a Host: header for the host from the URL.
>
> -H -H 'Accept:
>>
>
> This is a syntax error. -H reads the following as a header, which then
> makes it a "-H" header. Unusual, but curl doesn't care.
>
> But then 'Accept: ...' will be treated as a URL. Probably not a working
> one.
>
> ...
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> 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
>

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