HTPROXY(1)
β¨ HTPROXY π
okay bestie, gather round, because htproxy is genuinely one of those little tools that's lowkey iconic once you get it. it's a User Commands kinda situation, and it does exactly one thing but does it so well: it records an HTTP session. that's the whole vibe. π
πΈ NAME πΈ
htproxy β record a HTTP session π
π¦ SYNOPSIS π¦
htproxy [OPTIONS]
that's it. that's the whole thing. no positional args, no drama, just you and your options. π
π DESCRIPTION π
okay so here's the tea: htproxy do record a HTTP session as a httest script. β¨
like, you point it at stuff, it watches the traffic go by, and it writes it all down as a httest script for you. it's giving personal assistant but for HTTP. it's giving "not me being a proxy." it's giving main character energy, fr fr. π
π OPTIONS π
-v,--versionβ prints the version number and then dips. exit stage left. π«Ά-h,--helpβ shows you the usage info (this very message, iconic). π-p,--portβ the port. yep. that's the whole description. it's the port, bestie. π¦-d,--destβ the destination file. and heads up, the default file is literally called"file"β no cap, that's the actual default name. π-u,--url-filterβ a URL filter regex. the default is none, and it works as a blacklist. so if you don't set it, nothing gets filtered out. πΈ-l,--log-levelβ log level, and it goes from 0-4. pick your volume. π₯-H,--host-varβ the variable name for host. π-P,--port-varβ the variable name for port. (yes, capital P, don't mix it up with lowercase-p, iykyk. π)-U,--root-varβ the web application root variable name. π-A,--host-header-varβ the variable name for the host header value. π-t,--socket-tmoβ socket timeout in[ms], and the default is30000ms. so thirty seconds of patience, then it's over. β-i,--header-fileβ a file with header text. π-e,--trailer-fileβ a file with trailer text. π§-c,--cookie-prefixβ cookie variable prefix, and the default isCOOKIE_. πͺ-C,--configβ the configuration file. π
π EXAMPLE π
here's the moment you've all been waiting for, the example, served fresh:
htproxy -p 8888 -d init -H HOST -P PORT -u "(.*\.png\;.*$)|(.*\.css\;.*$)|(.*\.ico\;.*$)|(.*\.js\;.*$)"
look at her go. π¦ port 8888, writing to init, host var HOST, port var PORT, and a regex blacklist that skips all your .png, .css, .ico and .js noise. obsessed. π
π AUTHOR π
Written by Christian Liesch. legend behaviour, honestly. π
π COPYRIGHT π
Copyright Β© 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
okay so that last bit is the serious part and i need you to actually read it: no warranty, not even for merchantability or fitness for a particular purpose. it's free software, the source has the copying conditions. no cap. π
and that's the whole page, bestie!! this was htproxy version 2.4.23, from February 2025, living its best life as a User Commands page. go record something slay. π
β¨π«Ά
π¦ where this page comes from
- ubuntu questing: httest 2.4.23-5fakesync1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms