As of now, API Client works with the HTTP/1.x protocol, not HTTP/2. Long term the plan is to deprecate the API Client tool.
API Client
Overview
API Client is a simple tool that reads raw HTTP requests from files and submits them to an API that is running on some host and port number.
This can be useful to test simulations in API Simulator and visually inspect the responses that come back.
Certainly, cURL can be used in a similar way. The advantage of API Client is that it works with the raw HTTP requests like those captured with the API Recorder tool and containing in a single file not just the HTTP body payload but also the HTTP request line and HTTP headers.
Command-line Options
These are the command-line options for API Client:
Option | Description |
---|---|
|
Fully qualified name of file containing the raw input to send to the API |
|
Host where the API runs |
|
Port number at which the API runs |
|
Enables TLS/SSL connection, if this argument is present |
|
Enables verbose output, if this argument is present |