Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I read somewhere that netcat is like a "swiss army knife". Therefore, I want to check the status of a web service (I have the url), how can I do that using netcat? I know how it can be done through curl though, but I would really prefer to use netcat for the task.
You should probably quote the URI "http://192.168.0.1:8080/someService?wsdl" to keep the question mark from being interpreted by the shell if that's what you mean?
*BTW since this seems to be about WSDL why not use something like http://sourceforge.net/projects/wsdlpull/ instead? Then you can also check the actual content for errors and not just it being alive or not.
@unPawn, I have tried various combinations using qoutes as suggested, but the OS keeps displaying the nc syntax indicating that the syntax is not correct. Also, I am not allowed to install or copy other files like the wsdlpull you suggested. Further help is still needed and will be appreciated.
I have tried various combinations using qoutes as suggested, but the OS keeps displaying the nc syntax indicating that the syntax is not correct.
'man nc' says it's 'nc address [space] port' plus you'll prolly have to do something like 'echo -en 'GET HTTP/1.1 /someService?wsdl\n\n|nc address port'.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.