curl localhost:1901 –verboseServer information> sends request to server< response from the server
curl localhost:1901 --verbose --request OPTIONSDoor deze lijn krijg je alleen de server informatie te zien met daarbij de http versie en de status 200 wat staat voor verbonden en ok, oftewel of de data is toegestaan
curl localhost:1901 --verbose --request DELETEHierbij kregen we een eror omdat deleten niet toegestaan word, zoals je kan zien krijg je ook een error message en een error code 405 METHOD OT ALLOWED
curl localhost:1901 --verbose --request HEADHead is hetzelfde als get maar zonder de body
curl localhost:1901 --verbose --request POSTDoor POST voegen we iets toe aan de browser
curl localhost:1901 --verbose --request POST --data '{"titel":"wonder-woman"}'Een post request met dat titel wonder-woman verstuurtNa het toevoegen van de titel kan je naar je localhost gaan om te kijken wat er veranderd is
curl localhost:1901 --header 'Accept: application/xml'Accept headers met application/xml
curl localhost:1901 shows content in terminal
curl localhost:1901 –verbose Server information > sends request to server < response from the server
curl localhost:1901 --verbose --request OPTIONS Door deze lijn krijg je alleen de server informatie te zien met daarbij de http versie en de status 200 wat staat voor verbonden en ok, oftewel of de data is toegestaan
curl localhost:1901 --verbose --request DELETE Hierbij kregen we een eror omdat deleten niet toegestaan word, zoals je kan zien krijg je ook een error message en een error code 405 METHOD OT ALLOWED
curl localhost:1901 --verbose --request HEAD Head is hetzelfde als get maar zonder de body
curl localhost:1901 --verbose --request POST Door POST voegen we iets toe aan de browser
curl localhost:1901 --verbose --request POST --data '{"titel":"wonder-woman"}' Een post request met dat titel wonder-woman verstuurt Na het toevoegen van de titel kan je naar je localhost gaan om te kijken wat er veranderd is
curl localhost:1901 --header 'Accept: application/xml' Accept headers met application/xml