|
- What is `curl -o-`? - Unix Linux Stack Exchange
(curl -o-and curl -o - act the same ) Explicitly sending the output to stdout seems a bit redundant, since that's the default anyway However, the man page does mention using multiple -o options for multiple URLs to download, so it might be more useful in that context
- bash - Curl bad URL (3) - Unix Linux Stack Exchange
Stack Exchange Network Stack Exchange network consists of 183 Q A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers
- curl - Adding a self-signed certificate to the trusted list - Unix . . .
Most other commands such as curl take command line switches you can use to point at your CA, curl --cacert path to CA cert file https: or drop the SSL validation altogether curl --insecure https: The rest will need individual investigation if the ca-certificates like trick does not sort it for that particular application
- why would curl and wget result in a 403 forbidden?
It can be set in curl with the -u user:password (or --user user:password) option User-Agent: some requests will yield different responses depending on the User Agent This can be used in a good way (providing the real download rather than a list of mirrors) or in a bad way (reject user agents which do not start with Mozilla, or contain Wget or
- Bash while loop stop after a successful curl request
Which reads "until curl successfully completes the requested transfer, wait 5 seconds and retry" -f makes curl fail on server errors, -s prevents it from printing messages and the progress meter, -o dev null assumes you are not interested in the content of the response However, curl is able to retry by itself, there is no need for a shell
- ssl - curl hangs after client hello - Unix Linux Stack Exchange
Stack Exchange Network Stack Exchange network consists of 183 Q A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers
- Does curl have a timeout? - Unix Linux Stack Exchange
curl has two options: --connect-timeout and --max-time Quoting from the manpage:--connect-timeout <seconds> Maximum time in seconds that you allow the connection to the server to take This only limits the connection phase, once curl has connected this option is of no more use
- Extract value from JSON document returned by curl
The jq expression data geo country_name extracts the given item in the JSON document returned from the endpoint that you access with curl Share Improve this answer
|
|
|