File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test355
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 10:01:16 2020 UTC (5 years ago) by misho
Branches: curl, MAIN
CVS tags: v7_70_0p4, HEAD
curl

    1: <testcase>
    2: <info>
    3: <keywords>
    4: HTTP
    5: Alt-Svc
    6: </keywords>
    7: </info>
    8: 
    9: #
   10: # Server-side
   11: <reply>
   12: <data>
   13: HTTP/1.1 200 OK
   14: Date: Thu, 09 Nov 2010 14:49:00 GMT
   15: Content-Length: 6
   16: Connection: close
   17: Content-Type: text/html
   18: Funny-head: yesyes
   19: 
   20: -foo-
   21: </data>
   22: </reply>
   23: 
   24: #
   25: # Client-side
   26: <client>
   27: <features>
   28: alt-svc
   29: </features>
   30: <server>
   31: http
   32: </server>
   33:  <name>
   34: load Alt-Svc from file and use
   35:  </name>
   36:  <command>
   37: http://%HOSTIP:%HTTPPORT/355 --alt-svc ""
   38: </command>
   39: <file name="log/altsvc-355">
   40: h1 example.com 80 h1 %HOSTIP %HTTPPORT "20290222 22:19:28" 0 0
   41: </file>
   42: </client>
   43: 
   44: #
   45: # Verify data after the test has been "shot"
   46: <verify>
   47: <strip>
   48: ^User-Agent:.*
   49: </strip>
   50: <protocol>
   51: GET /355 HTTP/1.1
   52: Host: %HOSTIP:%HTTPPORT
   53: Accept: */*
   54: 
   55: </protocol>
   56: </verify>
   57: </testcase>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>