Comments (2)
after monitor network traffic, I found not Proxy-Authorization in headers fields of the CONNECT method to downstream proxy.
I changed a few lines of function Proxy.connect to:
pbw := bufio.NewWriter(conn)
pbr := bufio.NewReader(conn)
if p.proxyURL.User != nil {
req.Header.Add("Proxy-Authorization", "Basic "+base64.StdEncoding.EncodeToString([]byte(p.proxyURL.User.String())))
}
req.Write(pbw)
pbw.Flush()
and this results stucking at tls handshakes
from martian.
The problem may be the usage of http.ReadResponse for CONNECT
res, err := http.ReadResponse(pbr, req)
When it write response back, "Connection: close" is added automatically.
from martian.
Related Issues (20)
- Unable to Specify that Proxy should listen on an address
- HAR logging options HOT 1
- Certificate cache TTL HOT 1
- Feature: streaming responses HOT 2
- proxy: provide support transparent proxy mode
- id_modifier error HOT 1
- Possibly wrong url path in the README example
- SetRoundTripper not effective
- Lack of `go mod tidy` causes downstream issues
- API response coming late. HOT 1
- Can't pass Cloudflare DDoS protection in some sites. HOT 1
- Modify the request body in sequential call with dynamic value HOT 1
- HTTP/2 issues with curl - peer does not support HTTP/2 properly
- removing flag parsing from module init
- Problem on SetDeadline will cause unwanted conn break HOT 1
- Recored with client certificate HOT 1
- Http.ResponseWriter
- go get fails with invalid path
- Support h3?
- Add ability to set logging level
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from martian.