

It will still output the data you askįor, potentially even to the terminal/stdout unless you redirect When used with -s, -silent, it makes curl show an error message GET after a 30x response by using the dedicated options for You can tell curl to not change the non-GET request method to If the responseĬode was any other 3xx code, curl will re-send the following re‐ (for example POST or PUT), it will do the following request withĪ GET if the HTTP response was 301, 302, or 303. When curl follows a redirect and the request is not a plain GET Redirects to follow by using the -max-redirs option. Won't be able to intercept the user+password. If a redirect takes curl to a different host, it Thentication is used, curl only sends its credentials to the head, headers from all requested pages will be shown. If used together with -i, -include or -I,

To a different location (indicated with a Location: header and aģXX response code), this option will make curl redo the request (HTTP) If the server reports that the requested page has moved Thentication is involved (response codes 401 and 407). Successful response codes will slip through, especially when au‐ This method is not fail-safe and there are occasions where non. Vent curl from outputting that and return error 22. (which often also describes why and more). In normal cases when an HTTP server fails toĭeliver a document, it returns an HTML document stating so Is mostly done to better enable scripts etc to better deal withįailed attempts. (HTTP) Fail silently (no output at all) on server errors. Where must be replaced with the NO_PUBKEY number displayed in the error message.Įxplanation of the curl options: -f, -fail Here's a short script that solves the situation for Ubuntu based systems following 20.10 update (after apt-key and add-apt-repository deprecation): curl -fsSL '' | sudo gpg -dearmor -o /etc/apt//protonvpn-stable.gpg If there are still questions, the company suggests getting in touch.

Proton's GPG key has long-since stopped working.
