I am trying to get an API query into python. The command line
when I do curl to a API call link http://example.com/passkey=wedsmdjsjmdd
I try to download a file with wget
and curl
and it is rejected with a 403 error (forbidden).
I noticed some time ago that usernames and passwords given to curl
as command line arguments don’t appear in ps
output (although of course they may appear in your bash history).
One major shortcoming of curl
is that more and more wepages are having their main piece of content painted by a JavaScript AJAX response that occurs after the initial HTTP response. curl
never picks up on this post-painted content.
So far I couldn’t find anything really, but is it true that curl
doesn’t really time out at all?
I’d like to do a health check of a service by calling a specific url on it. Feels like the simplest solution would be to use cron to do the check every minute or so. In case of errors, cron sends me an email.
Is it possible to use curl and post binary data without passing in a file name? For example, you can post a form using binary via –data-binary:
Imagine something like this: