Tag Info

New answers tagged

1

Making the vast assumption that the rest of your networking is ok, (i.e. can route traffic to your default gateway, you can resolve and reach outside hosts, etc) and that you are only seeing these kind of problems for one site, github.com, then it is possible that you have an encountered a problem on their end. If the above assumption is not correct, or you ...


0

Not sure what is actually wrong on your side without the actual wget/curl command, but this wget "http://xx.xx.xx.145:8888/snapshot.cgi?user=wxcam&pwd=getsomewx" --output-document cam_$(date +%Y%m%dT%H%M%S).jpeg worked. I did this both from a computer where I previously had used the browser to access the cam and from a system where I did not do so (in ...


1

You can use combination of timeout and retry options: curl --max-time <seconds> --retry <num> --max-time is total time for getting the file. --retry starts new attempt after either connection error or the timeout. You might also consider --connect-timeout, --retry-max-time, and --retry-delay options. See man curl for details.


2

It is possible to use --stderr - as parameter, to redirect the output from stderr (default) to stdout. With this option you also should use --silent to suppress the progress bar. $ curl -v --silent https://google.com/ --stderr - | grep expire * expire date: 2015-09-01 00:00:00 GMT


1

Curl only does the "main" page. If there is any content on the page that is loaded by JavaScript, you will not get that in your scraping/crawling when you use curl. The best way to get a "complete" pages that I have found is use selenium and drive that from some script (I use python to do so). Complete is relative here, because there is no guarantee ever ...


0

This previous post seems to be a long way toward a solution: Automating web requests using curl?


1

I don't think there is an exact equivalent to the last detail, but something like this might work: curl -L --connect-timeout 5 --retry 1 --referer http://www.example.com -o image.jpg http://www.example.com/abcdefg123.jpg


0

curl --retry 1 --connect-timeout 5 -o image.jpg -e 'http://www.example.com' http://www.example.com/abcdefg123.jpg There is also timeout option -m for the operation, depending on what you need.


1

There is no documentation covering all of the conversions between the name of the cipher, and the name that curl is expecting as an argument. Luckily, curl is open source, and the mapping is available in the source code. For the benefit of future searchers, I reproduce it more neatly here: SSL2 cipher suites <argument> <name> ...


1

There is no curl format. The format of the ciphers used by curl depends on the backend which can be at least NSS, GnuTLS, SecureTransport, SChannel, OpenSSL. But it looks like you are asking for the OpenSSL syntax. In this case see https://www.openssl.org/docs/apps/ciphers.html#CIPHER-SUITE-NAMES for a translation between the cipher names.


0

There is a website that offers curl cipher requestion detection as a service: curl https://www.howsmyssl.com/a/check However, it does not accept all ciphers - if one of the ciphers they accept is not on the list that your curl is sending, then you will not be able to get a response at all.



Top 50 recent answers are included