Curl ExercisesQuestions & AnswersWhat is the purpose of curl? CLICK FOR ANSWERTo craft HTTP(s) requests and receive HTTP(s) responses allowing you to transfer data from or to a server.How do you make a GET request to www.google.com? CLICK FOR ANSWERcurl www.google.com How do you change the HTTP request method using curl? CLICK FOR ANSWERWith the -X option.Getcurl -X GET [URL] Postcurl -X POST [URL] Putcurl -X PUT [URL] Patchcurl -X PATCH [URL] Deletecurl -X DELETE [URL] How do you include a request header with curl? CLICK FOR ANSWERWith the -H option.Adding a Content-Type: application/json headercurl -X POST [URL] -H 'Content-Type:application/json' How do you include a request body with curl? CLICK FOR ANSWERWith the -d option.Adding a JSON request bodycurl -X POST [URL] -d '{"animalType": "dog", "name": "Bernie", "age": 6}'