Re:GitHub blocks FLoC across all of GitHub Pages
by jgrahamc on Wednesday April 28, 2021 @07:29AM
(#26968161)
[ Parent
| on HN ]
Re:GitHub blocks FLoC across all of GitHub Pages
by est31 on Wednesday April 28, 2021 @07:39AM
(#26968226)
Btw you can do this much shorter with the curl -I parameter which lists the return headers.
Re:GitHub blocks FLoC across all of GitHub Pages
by johncolanduoni on Wednesday April 28, 2021 @07:54AM
(#26968300)
That also causes curl to change the underlying request to a HEAD request. Though according to the spec they should return the same headers, it’s not uncommon for sites to fail to do so (some web frameworks leave this responsibility to the user) or to cache these responses differently.
Personally I reflexively use the verbose version they used for these kind of investigations of server behavior after being bit a few times.
Re:GitHub blocks FLoC across all of GitHub Pages
by StavrosK on Wednesday April 28, 2021 @08:10AM
(#26968418)
Same here, I thought it caused cURL to do a GET request and throw away the body, but it doesn't, and I've gotten different results more than once.
Re:GitHub blocks FLoC across all of GitHub Pages
by johnvaluk on Wednesday April 28, 2021 @08:34AM
(#26968616)
Also consider changing the user-agent from the default. I set mine to a typical browser string in ~/.curlrc, but you can also use -A/--user-agent on the command line.
Re:GitHub blocks FLoC across all of GitHub Pages
by iampims on Wednesday April 28, 2021 @08:59AM
(#26968802)
curl -i (lowercase) prints the headers as well as the response body without the verbosity of -v
Re:GitHub blocks FLoC across all of GitHub Pages
by nerdponx on Wednesday April 28, 2021 @09:11AM
(#26968905)
I believe you can also control what exactly is emitted with -w, which is nicer than trying to parse it later.
Re:GitHub blocks FLoC across all of GitHub Pages
by nerdponx on Wednesday April 28, 2021 @08:54AM
(#26968755)
I use -i instead of -v -o /dev/null; is there any reason to prefer the latter? Is Curl smart enough to skip fetching the response body with the latter?
Re:GitHub blocks FLoC across all of GitHub Pages
by jgrahamc on Wednesday April 28, 2021 @07:40AM
(#26968232)
Shows how often I use curl.
Re:GitHub blocks FLoC across all of GitHub Pages
by kenniskrag on Wednesday April 28, 2021 @07:39AM
(#26968228)
does -I not work? ;)