PROTOCOLS · HTTP
Load test your APIs and web apps the way real users hit them
REST APIs, web apps and microservices carry most of your traffic. Gatling simulates each user with its own connections, cookies and cache, over HTTP/1.1 or HTTP/2, and checks every response, so you see slow endpoints and errors before your users do.


Measure full user journeys, not single endpoints
A 200 status says the server answered. It doesn’t say the response was right, or that the next call in the journey worked. Gatling checks each response, saves the values the next request needs, and measures every step per virtual user.
From the first request to the last check, in one Gatling test
Every request appears by name in the Gatling report, with response time percentiles and errors.
How Gatling does it
Validate every response
Check status, headers and body with JSON path, JMESPath, XPath, CSS selectors or regex. Save values to the session and reuse them in the next request.
Real clients, not one shared pipe
Each virtual user gets its own connections, cookies and cache. HTTP/2 is one call away, with fallback to HTTP/1.1.
Any body your API takes
JSON from templates, files, forms, multipart uploads and gzip bodies, filled with test data from feeders.
Where teams load test HTTP
HTTP carries most of your traffic. These are the services to test before a release, a sale or a migration.
Public and partner APIs
Endpoints called with realistic payloads and query parameters. Measure p95 and p99 latency per endpoint as traffic grows.
Checkout at peak
Browse, add to cart and pay, with page resources fetched in parallel. Measure where the funnel slows during a sale.
Calls between services
Internal APIs behind a gateway, tested from a private location. Measure which service adds latency under load.
Login and token flows
Basic and digest auth, signed requests and tokens saved from login responses. Measure the login rush at opening time.
Files and forms
Multipart uploads and form posts with real file sizes. Measure throughput and errors as concurrent uploads grow.
A different architecture?
Tell us about the services that matter to your business. We’ll help you design the right Gatling test.
HTTP testing at the core of Gatling
HTTP/1.1 and HTTP/2, checks, cookies, caching, redirects, proxies and DNS settings ship with the Gatling HTTP SDK. No plugin to install.
Behaves like real clients
Per-user cookies, cache, connection pools and DNS, plus parallel fetching of page resources, so each virtual user loads your app the way a browser does.
Private Locations
Run next to internal APIs and staging environments that aren’t reachable from the internet, with no inbound access to open.
Performance gates with assertions
Set assertions on response time percentiles and error rates per request. If one fails, the Gatling test fails and so does the build.
Live Session
See Gatling in action
Build, run, and interpret your first load test. A practical session: by the end, you'll know exactly what Enterprise gives you out of the box.
.png)
Your first Gatling test for HTTP
The reference docs from our engineers, from protocol setup to cookies and cache. Pick the part you need.
Configure the HTTP protocol
Base URLs, connections, HTTP/2, DNS, proxies, caching and redirects.
Build HTTP requests
Methods, headers, query parameters, bodies, forms, multipart and checks.
HTTP helpers
Add, read and flush cookies, and clear the HTTP cache per virtual user.
One platform for every protocol you run
Same Gatling SDK, same reports, same infrastructure.
gRPC
Unary and streaming calls built from your .proto files.
HTTP
REST APIs and web apps.
MQTT
IoT devices and brokers at fleet scale.
Kafka
Event-driven flows, end to end.
SSE
Server-Sent Events streams.
Also supported: WebSocket, GraphQL, JDBC and JMS. See the full tech stack›
HTTP load testing, answered
What teams ask before they run their first HTTP test with Gatling.
Does Gatling support HTTP/2?
Yes. Call enableHttp2 on the protocol and Gatling negotiates HTTP/2 through ALPN, falling back to HTTP/1.1 when the server doesn’t support it. HTTP/2 server push is not supported.
Does each virtual user behave like a separate browser?
Yes. By default each virtual user has its own connections, cookies and cache, with up to 6 connections per host. You can share one connection pool instead to simulate server-to-server traffic.
How do I chain requests that depend on each other?
Save a value from a response with a check, such as a token or an ID, and reuse it in the next request through the session. Cookies are handled for you.
Can I test APIs behind a proxy or with client certificates?
Yes. Gatling supports HTTP, HTTPS and SOCKS proxies, and can give each virtual user its own client certificate for mutual TLS in the Java, Kotlin and Scala SDKs.
Can I record a user journey instead of writing it?
Yes. The Gatling Recorder captures browser traffic as an HTTP proxy, or converts a HAR file into a simulation you can edit.
Which Gatling versions and languages are supported?
HTTP support ships with every Gatling SDK: Java, Kotlin, Scala, JavaScript and TypeScript. A few options, such as per-user client certificates and custom request signing, are JVM only.
Find out how much traffic your APIs can take
Bring one user journey that matters to your business. We’ll write the test with you and run it against your service in a Gatling Enterprise trial.
Find out where your APIs break
Bring one API that matters to your business. We'll show you how to test it at production scale with Gatling Enterprise.
Need technical references and tutorials?
Running HTTP tests locally first?

