PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

Spdylay - SPDY C Library — Spdylay 1.1.0 documentation

mardi 1 octobre 2013 à 17:54
jeekajoo, le 01/10/2013 à 17:54
Voici une proc pour installer un client et un serveur SPDY en ligne de commande:
- Cloner https://github.com/tatsuhiro-t/spdylay.git
- Installer packages prérequis (sur ubuntu 12.04):
$ sudo apt-get install autoconf automake autotools-dev libtool pkg-config zlib1g-dev libcunit1-dev libssl-dev libxml2-dev libevent-dev
- Compiler:
$ autoreconf -i
$ automake
$ autoconf
$ ./configure
$ make
- Feu! Lancer le client:
$ ./src/spdycat -nv https://fralef.me
[  0.036] NPN select next protocol: the remote server offers:
         * spdy/2
         * http/1.1
         NPN selected the protocol: spdy/2
[  0.052] Handshake complete
[  0.052] send SYN_STREAM frame <version=2, flags=1, length=172>
         (stream_id=1, assoc_stream_id=0, pri=3)
         :host: fralef.me
         :method: GET
         :path: /
         :scheme: https
         :version: HTTP/1.1
         accept: */*
         accept-encoding: gzip, deflate
         user-agent: spdylay/1.1.0
[  0.068] recv SETTINGS frame <version=2, flags=1, length=12>
         (niv=1)
         [4(1):100]
[  0.069] recv SYN_REPLY frame <version=2, flags=0, length=262>
         (stream_id=1)
         content-encoding: gzip
         content-type: text/html; charset=UTF-8
         date: Tue, 01 Oct 2013 16:01:03 GMT
         last-modified: Mon, 30 Sep 2013 13:41:35 GMT
         server: nginx
         :status: 200
         strict-transport-security: max-age=2678400
         :version: HTTP/1.1
[  0.081] recv DATA frame (stream_id=1, flags=1, length=2660)
[  0.081] send GOAWAY frame <version=2, flags=0, length=4>
         (last_good_stream_id=0)
(Permalink)