curl: option –connection-timeout: is unknown


This Content is from Stack Overflow. Question asked by Majid Rajabi

I can see somebody in some source says that we can overwrite curl default timeout by using this option --connection-timeout. But I get this error :

curl: option --connection-timeout: is unknown

What is wrong here? and how can we set timeout for curl requests?


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?