From fecfc38f64f30240eb78861de4c30dee6be8fca5 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Tue, 7 Jun 2022 14:37:22 -0700 Subject: [PATCH] added notation about curl --compressed flag --- curl_notes.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/curl_notes.txt b/curl_notes.txt index 274146bf..5e3a448e 100644 --- a/curl_notes.txt +++ b/curl_notes.txt @@ -24,3 +24,13 @@ curl -H 'Accept: application/json' -H "Authorization: Bearer eyJhbGciOiJIUzI1NiI ======= curl -H 'Accept: application/json' -H "Authorization: Bearer "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1lIjoiSmltIiwiaWF0IjoxNjI5ODkyNTU1fQ.yMsrbX_c-vAXRMMYe5OFRWfg95zk0J2BBsv0zjcy4gU" http://localhost:3000/posts >>>>>>> 95f75b948d7df9af11c31531df2f9f69130561c3 + + +################ OTHER BASIC USES OF CURL ################ + +# Simply write the html output of a website to an html file for offline browsing +curl http://mywebsite.com >> mywebsite.html + +# If for whatever reason you get a Binary (and a warning), it means the site was compressed. to decompress, simply write: + +curl --compressed http://mycompressedwebsite.com >> mydecompressedhtml.html