Gh

go-httpbin

AWS Developer Tools

self hosted httpbin, a fast HTTP request and response testing service

Base
Hardened build
minimal ports, security patches applied at build time
Access
Unique credentials
generated on first boot, readable only by root
Verified
Boots working
services pass a health gate before release
Support
24/7, 365 days
by email and live chat, 24 hour response SLA

Overview

go-httpbin is a fast, dependency free implementation of httpbin, the well known HTTP request and response testing service. It exposes endpoints that echo your request back as JSON, return any status code you ask for, add delays, stream and encode responses, and issue redirects, cookies and basic auth challenges, so you can exercise and debug any HTTP client, SDK, proxy, load balancer or CI pipeline against a predictable server you control.

Why the cloudimg image

cloudimg ships go-httpbin secure by default: it binds the loopback interface only and nginx is the sole network surface, terminating TLS and enforcing HTTP basic auth so the service can never be abused as an open reflector. Nothing secret is baked in, the per instance basic auth password and TLS certificate are both generated on first boot and written to a root only file, and every image is paired with a tested deploy guide and 24/7 support.

Common uses

  • Test how your HTTP clients, SDKs and proxies handle status codes, redirects, delays and streaming
  • Give CI pipelines a private, predictable HTTP endpoint with no shared public rate limits
  • Validate load balancer, gateway and retry behaviour against a controllable server

Key features

  • go-httpbin, the fast self contained Go implementation of httpbin, fully installed as a hardened systemd service behind nginx. Exercise and debug any HTTP client, proxy, load balancer or CI pipeline against echo, status code, header, redirect, delay, streaming and encoding endpoints, all from one dependency free binary.
  • Secure by default and never an open reflector: go-httpbin binds the loopback interface only while nginx terminates TLS on port 443 and fronts the whole service with per instance HTTP basic authentication, so its redirect and fetch endpoints cannot be abused as an SSRF or open redirect relay. No shared or default credentials, since the per instance password and TLS certificate are both generated on first boot.
  • 24/7 expert technical support from cloudimg with a one hour average response time for critical issues. Our engineers help with wiring go-httpbin into your HTTP client tests and CI pipelines, adding a real domain and certificate, tuning limits, and go-httpbin version upgrades.

See it running

Real screenshots taken while testing this image against its deployment guide.

go-httpbin screenshot 1 go-httpbin screenshot 2 go-httpbin screenshot 3 go-httpbin screenshot 4

Description

This is a repackaged open source software product wherein additional charges apply for cloudimg support services.

## go-httpbin - Hardened HTTP Testing Service by cloudimg

This is a repackaged open source software product with additional charges for cloudimg support services.

go-httpbin is a fast, dependency-free HTTP request and response testing service - a Go implementation of the well-known httpbin. It exposes a rich set of endpoints for exercising and debugging anything that speaks HTTP.

### What You Get

A fully configured, production-hardened AMI with go-httpbin running as a systemd service behind nginx. A working test endpoint answers requests within minutes of launch - no configuration required.

### Key Endpoints

  • Echo endpoints (/get, /post, /put, /delete) that reflect method, headers, query arguments, and body back as JSON
  • Status code endpoints (/status/{code}) returning any HTTP status you request
  • Utility endpoints for headers, client IP, redirects, delays, streaming, gzip, deflate, basic auth challenges, cookies, UUIDs, and random bytes

### Who This Is For

go-httpbin is the tool you point your HTTP clients, SDKs, proxies, API gateways, load balancers, and CI pipelines at when you need a predictable, controllable server on the other end. Verify your client handles a 429 with a Retry-After header, a slow response, a chunked stream, or a redirect chain correctly - go-httpbin gives you an endpoint for each scenario with no external dependencies and no shared public rate limits.

### Architecture and Security

Secure by default and never an open reflector. go-httpbin binds to the loopback interface only. nginx is the single network-facing surface, terminating TLS on port 443 with a per-instance self-signed certificate and fronting the entire service with HTTP basic authentication. An unauthenticated health endpoint is available for load balancer and liveness probes, and plain HTTP on port 80 redirects to HTTPS.

Nothing secret is baked into the image. On first boot, a one-shot service generates a unique HTTP basic auth password for the user "httpbin" and a unique self-signed TLS certificate, then writes credentials to a root-only file. This prevents the service from being abused as an open reflector or SSRF relay.

### Key Capabilities

  • Request inspection endpoints echoing method, headers, arguments, and body as JSON
  • Arbitrary status code responses for testing error handling and retries
  • Configurable delays, streaming, chunked, and drip responses for timeout and backpressure testing
  • Gzip, deflate, and encoding endpoints
  • Redirect, cookie, cache, and basic auth challenge endpoints
  • Single static binary with no runtime dependencies - starts instantly and uses minimal memory

### AWS Integration

Deploy on any EC2 instance type. The lightweight Go binary runs efficiently even on t3.micro instances. Use with Application Load Balancers via the unauthenticated health check endpoint. Integrate into AWS CodePipeline or CodeBuild workflows for automated HTTP client testing.

### Get Started

1. Launch the AMI on your preferred EC2 instance

2. Retrieve the per-instance credentials from the root-only file

3. Point your HTTP client, test suite, or CI job at the HTTPS endpoint with the basic auth user and password

cloudimg engineers provide 24/7 support and can help you wire go-httpbin into your test and CI workflows, front it with a real domain and trusted certificate, and tune it for your environment.

Related technologies

go-httpbinhttpbinhttp testingapi testingrequest inspectiondeveloper toolsgolangself hostedopen sourceci