9 Replies Latest reply on Jul 17, 2017 12:15 PM by 911172

    website status check from server command curl


      Hi Experts,


      I wish to check URL status by passing credentials to URL using CURL command, please advise how to achieve the same,


      $ curl -Is user1:passwd http://abcd10.xyx.com:8001/login.jspx | head -n 1


      In above command I am getting output as "HTTP/1.1 200 OK" if I gave wrong username and password.


      Please suggest the way to do the same.


      Thank you.