-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Intercept HTTP headers #1
Comments
Hi, this proxy is not really the right tool to do that: when used as a TCP proxy, it just forwards the content of the TCP connection to the remote endpoint without reading it. To intercept HTTP headers, you would need to parse this content. It's likely there are products out there that already do what you want. What's your use case, and where do you need to run it? |
Yes yes you right, but I want to do this for a project :D I tried to do this, but I don't know why it don't works, I'm not very good with Async and Wait programming in C# :/ I explain you what I want to do, I would like to make a TCP proxy that redirect flow depending on user, so I need to parse Authorization header, getting user, and with this user redirecting to the good IP :) |
Do you have a telegram/discord/skype or something else @Falanwe ? |
@clintnetwork did you manage to get the headers? O want to do something like that. |
@clintnetwork maybe you'll like the line 162 of https://github.com/microsoft/referencesource/blob/master/mscorlib/system/io/stream.cs Code: |
Sorry, it has been some time. The project was developed on our side because we needed something very simple for both TCP and UDP:
Both these requirements don't require modifying the headers even if I agree that it would be very useful in the general case, for HTTP requests. The proxy currently doesn't try to understand protocols, which is actually very useful if you are not forwarding HTTP trafic and we probably want the TCP forwarder this way. To read and modify headers, the best option is probably to add a new forwarder type configurable in config, specifically for HTTP, using kestrel as a webserver to parse the requests and then forward them. It would enable scenarios like HTTPS to HTTP forwarding or even simple loadbalancing. |
Hi,,
I would like to intercept HTTP headers and response, can you said me how to achieve this ?
Thanks you
The text was updated successfully, but these errors were encountered: