Skip to content

Creating Requests in the HTTP Client

Introduction

Efficiently creating and configuring HTTP requests is a cornerstone of web-based service interaction. In Martini, the HTTP Client facilitates this process, allowing for detailed customization of every aspect of an HTTP request. This section will guide you through the steps of setting up a new request configuration and detail the elements you can customize.

Opening a Request Configuration

  1. Accessing the HTTP Client:

    • Ensure that the HTTP Client is open in Martini.
  2. Creating a New Configuration:

    • Click the green, plus-sign button in the HTTP Client. This action opens a new tab in the right panel for your request configuration.

Configuring an HTTP Request

  1. Request Panel Components:

    • Utilize the components under the Request panel for configuring your HTTP request.
    • The Request panel is highlighted within the HTTP Client interface.
  2. Minimum Configuration:

    • At the very least, specify the URL and HTTP method for your request.
  3. Additional Configurations:

    • Depending on your needs, you can also configure various aspects of the request:
      • Parameters: Define any query parameters needed for the request.
      • Request Body: If applicable, include a request body with the necessary data.
      • Authentication: Set up authentication details as required.
      • Headers: Customize the request headers for additional control over the request.

Finalizing and Saving the Request

  • After configuring the necessary components, review the request setup to ensure all required fields are correctly filled.
  • Save the request configuration for future use or immediate execution.