add_http_sampler
Add an HTTP request sampler to an existing JMeter test plan with method, path, headers, body, and optional protocol/port settings to configure API load tests.
Instructions
Add an HTTP request sampler to an existing test plan
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Request body for POST/PUT/PATCH | |
| name | Yes | Name for the HTTP sampler | |
| path | Yes | URL path (e.g., /api/users) | |
| port | No | Target port (optional) | |
| domain | No | Target domain (optional, inherits from defaults) | |
| method | Yes | HTTP method | |
| headers | No | HTTP headers to include | |
| protocol | No | Protocol | http |
| testfile | Yes | Path to the .jmx file | |
| contentType | No | Content-Type header value | |
| useKeepalive | No | Use keep-alive | |
| followRedirects | No | Follow redirects |