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

后端 未结 8 988
小蘑菇
小蘑菇 2020-12-30 09:42

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 c

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-30 10:04

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

    $ curl http://google.com
    
    301 Moved
    

    301 Moved

    The document has moved here.

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

提交回复
热议问题