im trying to automate health checking of my VPSs using API requests from wget or lynx, but whenever I try to use options for wget/lynx to dump webpage to stdout, it fails if give it the API request, just usiing
http://localhost:7874 works though.
[root@vps08 ~]# lynx -dump
http://localhost:7874/nxt?&requestType=getState
[1] 2898
[root@vps08 ~]# {"errorCode":1,"errorDescription":"Incorrect request"}
Any tips?