Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if a web service is up and running without using ping?

How can i check if a method in a web service is working fine or not ? I cannot use ping. I still want to check any kind of method being invoked from the web service by the client. I know it is difficult to generalize but there should be some way.

like image 831
bebojoor Avatar asked Apr 18 '12 09:04

bebojoor


1 Answers

You may try curl. It's a Linux tool, should be there in Cygwin too.

$ curl http://google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>

There are lots of options; examples can be found in the 'net.

like image 195
18446744073709551615 Avatar answered Oct 29 '22 17:10

18446744073709551615