Topic : cmd to check status of url using Curl
I have below 2 lines which r working fine
/usr/bin/curl -u user:pasword http://hostname
/usr/bin/curl -connect-timeout=10 http://hostname
Now I want to use user:pasword
and connect-timeout parameter in one line
/usr/bin/curl -u user:pasword -connect-timeout=10 http://hostname
but when I execute this cmd a file "onnect-timeout=10" is generated..is any thing wrong with syntax, please suggest your inputs
---------- Post updated at 06:30 AM ---------- Previous update was at 04:57 AM ----------
Problem solved parameter connect-timeout was wrongly defined