Testing POST requests
Testing POST requests require more work compared to using GET requests. These requests always require some authentication and return an error when valid authentication is not available. So, first you have to add the URL in Enter request URL and select the method as POST. Next, go to Authorization tab and select Basic Auth as the type. Then add the Username and Password of a user in your site with post creation and edit capabilities. Generally, POST requests need additional parameters and values. Here, we are trying to create a post and hence you can add the post details as key-value pairs in the form-data section of Body tab. Finally, click on the Send button to send the API request. However, you will get the following ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access