![]() This command will return header fields such as Date, Content-Type etcĬurl -request GET '$NASA_API_KEY&date=' -v The most commonly used command options include these: You can see some of them by typing curl -h in a terminal. Generally, the body is used with POST and PUT methods. Headers, which contain metadata about the request, such as content type, user agent, and so on.īody, which is the message body and contains the data that we want to send, if any. These actions for these methods are the recommended actions, but it’s up to the API specification and implementation to define what exactly happens. This could be used to create or update a record in a database or update the contents of a file.ĭELETE is used to delete a resource such as a database entry.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |