normalize-http-proxy

command module
v0.0.0-...-4def0f5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

README

Normalize HTTP Proxy

A http proxy server chaining a upstream which needs authentication headers.

local -> [np] -> upstream -> destination

Usage

  • Normal use
➜  ./np baidu
Normalize Proxy: listens at 127.0.0.1:8888.
Http upstream is http://cloudnproxy.baidu.com:443, extra header(s) is(are):
X-T5-Auth: ZjQxNDIh
Https upstream is http://cloudnproxy.baidu.com:443, extra header(s) is(are):
X-T5-Auth: ZjQxNDIh
Verbose output is off.
➜  curl -x localhost:8888 https://baidu.com
<html>
<head><title>302 Found</title></head>
<body bgcolor="white">
<center><h1>302 Found</h1></center>
<hr><center>bfe/1.0.8.18</center>
</body>
</html>

Credit

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
https://github.com/smallnest/rpcxlite/tree/master/log https://qvault.io/golang/golang-logging-best-practices/
https://github.com/smallnest/rpcxlite/tree/master/log https://qvault.io/golang/golang-logging-best-practices/

Jump to

Keyboard shortcuts

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