cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: trying to get/generate cookies

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 6 May 2016 00:33:15 +0200 (CEST)

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
Received on 2016-05-06