v1.2.2 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2016 License: BSD-3-Clause, Apache-2.0 Imports: 15 Imported by: 0


Trace HTTP Requests and Responses

goproxy-httpdump starts an HTTP proxy on :8080. It handles explicit CONNECT requests and traces them in a "db" directory created in the proxy working directory. Each request type and headers are logged in a "log" file, while their bodies are dumped in files prefixed with the request session identifier.

Additionally, the example demonstrates how to:

  • Log information asynchronously (see HttpLogger)
  • Allow the proxy to be stopped manually while ensuring all pending requests have been processed (in this case, logged).

Start it in one shell:


Fetch goproxy homepage in another:

http_proxy= wget -O - \

A "db" directory should have appeared where you started the proxy, containing two files:

  • log: the request/response traces
  • 1_resp: the first response body


The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL