Skip to Main Content

Hardware

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

website status check from server command curl

911172Jul 14 2017 — edited Jul 17 2017

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.

Regards,

Abdul

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 14 2017
Added on Jul 14 2017
9 comments
1,761 views