tatsuhiro-t / spdylay

The experimental SPDY protocol version 2, 3 and 3.1 implementation in C
http://tatsuhiro-t.github.io/spdylay/
MIT License
603 stars 102 forks source link

spdycat: Add support for SPDY proxies #101

Closed irrenhaus closed 10 years ago

irrenhaus commented 10 years ago

I've added support for SPDY proxy servers to the spdycat tool. This means that with the modifications you can specify a specific SPDY proxy host & port via the -p,--proxy and -P,--proxy-port parameters. This would change the usage (for proxy usage) of spdycat to (for example, using port 443 and requesting google.com): spdycat -p myproxy.mydoma.in http://www.google.com.

This is mainly a change to the spdycat.cc file but smaller changes were necessary within the spdylay_ssl.cc & spdylay_ssl.h files to support the proxy settings.

Please let me know if there are conceptional or source-code problems present.

Best

irrenhaus commented 10 years ago

Thanks for your effort & suggestions, I fixed it according to your comments.

tatsuhiro-t commented 10 years ago

Thank you. Merged and pushed now.