Skip to content

0x5459/goproxy-httpdump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

! Copy from elazarl/goproxy

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:

go run github.com/0x5459/goproxy-httpdump@latest -- -l41235

Fetch goproxy homepage in another:

http_proxy=http://127.0.0.1:8080 wget -O - \
	http://ripper234.com/p/introducing-goproxy-light-http-proxy/

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages