How to check your RESTful Web Service via curl or wget commands
How to check your RESTful Web Service if you don’t have an access via browser or you just like command line? This is a frequent issue when you develop or deploy RESTful applications. There are 2 popular tools for it: curl and wget.
curl – is a tool to transfer data from or to a server. It supports a lot of different protocols such as HTTP, HTTPS, FTP, IMAP, POP3, SCP, SMTP, TELNET and more…
Wget – just the non-interactive network downloader. It supports HTTP, HTTPS, and FTP protocols
I use both of them and suggest the following commands for testing web services:
If you need more details regarding these tools there is a good comparison curl vs wget.
原文出處:How to check your RESTful Web Service via curl or wget commands | Andrii Grytsyk