LoginSignup
5
6

More than 5 years have passed since last update.

CLIでSPDYを利用してHTTPS通信がしたい

Last updated at Posted at 2014-10-30

CLIでHTTPS(やHTTP)で通信したいときはcurlやwgetをよく使う。

$ curl https://127.0.0.1/index.html
$ wget https://127.0.0.1/download/hoge.zip

今回はちょっとCLIでSPDYを使ってデバッグしたいことがあったんだけど、手元のcurlやwgetだとまだサポートされてないようなので、CLIでSPDYを使って通信できるツールを探して使ってみた。(最新のcurlなら--http2というオプションがあるので使えるかもしれない)

spdylay

今回はspdylayというのを使ってみた。とりあえずビルド。

$ git clone https://github.com/tatsuhiro-t/spdylay
$ autoreconf -i
$ automake
$ autoconf
$ ./configure
$ make

srcディレクトリにspdycatというバイナリができるのでこれを使う。

$ cd src
$ ./spdycat --spdy3-1 https://127.0.0.1/

これでCLIでもSPDYで通信できるようになった。

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6