Closed azjones227 closed 3 years ago
Yes, its nit picky and yes i could just press enter again to get a clean line. But please make it so that the prompt appears on a new line and not after the end of the output text.
ajones@C560:~$ curl -H "Content-Type: application/json" -X POST -d '{"username": "ajones", "password": "r3deem227!"}' 192.168.1.244:3000/auth/login {"login":true,"token":"8e805832-40a1-4e3b-8a81-e8e4e77b6926","groups":["ajones"]}ajones@C560:~$ ajones@C560:~$ curl -H "auth-token: 8e805832-40a1-4e3b-8a81-e8e4e77b6926" 192.168.1.244:3000/api/ {"hosts":["jbjc.asura.vm42.us","stuff.asura.vm42.us","transmission.asura.vm42.us","emby.asura.vm42.us","remotevm.asura.vm42.us"]}ajones@C560:~$ ajones@C560:~$ curl -H "Content-Type: application/json" -H "auth-token: 8e805832-40a1-4e3b-8a81-e8e4e77b6926" -X DELETE -d "{\"host\": \"jbjc.asura.vm42.com\"}" 192.168.1.244:3000/api/ {"message":"Host jbjc.asauth-token: 8e805832-40a1-4e3b-8a81-e8e4e77b6926" 192.168.1.244:3000/api/ {"hosts":["jbjc.asura.vm42.us","stuff.asura.vm42.us","transmission.asura.vm42.us","emby.asura.vm42.us","remotevm.asura.vm42.us"]}ajones@C560:~$
This is designed function of curl, see https://stackoverflow.com/questions/12849584/automatically-add-newline-at-end-of-curl-response-body
curl
stale
Yes, its nit picky and yes i could just press enter again to get a clean line. But please make it so that the prompt appears on a new line and not after the end of the output text.
ajones@C560:~$ curl -H "Content-Type: application/json" -X POST -d '{"username": "ajones", "password": "r3deem227!"}' 192.168.1.244:3000/auth/login {"login":true,"token":"8e805832-40a1-4e3b-8a81-e8e4e77b6926","groups":["ajones"]}ajones@C560:~$ ajones@C560:~$ curl -H "auth-token: 8e805832-40a1-4e3b-8a81-e8e4e77b6926" 192.168.1.244:3000/api/ {"hosts":["jbjc.asura.vm42.us","stuff.asura.vm42.us","transmission.asura.vm42.us","emby.asura.vm42.us","remotevm.asura.vm42.us"]}ajones@C560:~$ ajones@C560:~$ curl -H "Content-Type: application/json" -H "auth-token: 8e805832-40a1-4e3b-8a81-e8e4e77b6926" -X DELETE -d "{\"host\": \"jbjc.asura.vm42.com\"}" 192.168.1.244:3000/api/ {"message":"Host jbjc.asauth-token: 8e805832-40a1-4e3b-8a81-e8e4e77b6926" 192.168.1.244:3000/api/ {"hosts":["jbjc.asura.vm42.us","stuff.asura.vm42.us","transmission.asura.vm42.us","emby.asura.vm42.us","remotevm.asura.vm42.us"]}ajones@C560:~$