projectdiscovery / proxify

A versatile and portable proxy for capturing, manipulating, and replaying HTTP/HTTPS traffic on the go.
https://projectdiscovery.io
MIT License
2.68k stars 223 forks source link

HTTP/2 does not work with proxify #356

Open fuomag9 opened 1 year ago

fuomag9 commented 1 year ago

Proxify version:

[INF] Current Version: v0.0.12

Current Behavior:

HTTP/2 does not work

Expected Behavior:

HTTP/2 worked

Steps To Reproduce:

[INF] Current proxify version v0.0.12 (latest) [INF] HTTP Proxy Listening on 0.0.0.0:8888 [INF] Socks5 Proxy Listening on 127.0.0.1:10080 [INF] Saving proxify traffic to logs [ERR] martian: failed to read request: malformed HTTP version "HTTP/2" [ERR] martian: failed to read request: malformed HTTP version "HTTP/2" [ERR] martian: failed to read request: malformed HTTP version "HTTP/2"



### Anything else:
<!-- Links? References? Screnshots? Anything that will give us more context about the issue that you are encountering! -->
Negative
denandz commented 5 months ago

This is a limitation of the Martian library that's been chosen to provide the proxy functionality, unfortunately. See https://github.com/denandz/glorp/issues/11 and https://github.com/google/martian/issues/333

Yet to find a Golang HTTP proxy library that supports HTTP/2 interception.