Raw Preview And Copy Curl Command

Raw Preview Request/Response

The raw request and response preview features allow API developers to view the exact request and response payloads being exchanged between clients and servers in their APIs.

This feature provides a detailed look at the headers, body, parameters, and metadata of the HTTP request and response, which can help API developers debug issues, test APIs, and optimize performance. By using raw preview request and response capabilities, API developers can gain a deeper understanding of how their APIs are being used and troubleshoot issues quickly and efficiently.

Raw Preview in Astera API Management

Astera lets the user preview the Raw request and Raw response both from the API Client object.

  1. Drag-and-drop an API Client object and configure it.

For our use case, we have used an API Client making a GET Call to a resource.

  1. Right-Click on the object and select Preview Raw Request.

This will show the raw request in the Raw Data Preview window.

As you can see, it has shown the HTTP method as well as the resource, host server details, and the Content-Type of the Request.

It even shows us tabs on the Request, Parameters, and Body.

  1. To preview the raw response, right-click on the API Client object and select Preview Raw Response from the context menu.

This will generate a raw response in the Raw Data Preview window.

As you can see above, the raw response has been generated, which shows us the entire HTTP response in raw form. It even has tabs that show us the Parameters, body, and response info.

CURL Command

Curl is a command-line utility that can be used to send HTTP requests to APIs and retrieve the respective responses.

It allows API developers and testers to easily interact with APIs and perform tasks such as testing, debugging, and troubleshooting. Curl supports various HTTP methods such as GET, POST, PUT, and DELETE, and can handle HTTP headers, cookies, and authentication.

It is a simple, yet powerful tool that is widely used in API development and management.

Copy CURL in Astera

Astera lets the user copy and view the CURL command from the Raw Data Preview window to help in comparing and debugging results from any external clients such as Windows command prompt or Postman.

Note: The Copy CURL Command option is available in the raw request preview.

This concludes Raw Preview and Copy CURL in Astera.

Last updated

© Copyright 2023, Astera Software