File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test339
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: HTTP GET
    6: </keywords>
    7: </info>
    8: #
    9: # Server-side
   10: <reply>
   11: <data nocheck="yes">
   12: HTTP/1.1 200 funky chunky!
   13: Server: fakeit/0.9 fakeitbad/1.0
   14: Transfer-Encoding: chunked
   15: Trailer: chunky-trailer
   16: Connection: mooo
   17: ETag: "asdf"
   18: 
   19: 40
   20: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
   21: 30
   22: bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
   23: 21;heresatest=moooo
   24: cccccccccccccccccccccccccccccccc
   25: 
   26: 0
   27: chunky-trailer: header data
   28: 
   29: </data>
   30: </reply>
   31: 
   32: #
   33: # Client-side
   34: <client>
   35: <server>
   36: http
   37: </server>
   38: <name>
   39: Check if --etag-save saved correct etag to a file
   40: </name>
   41: <command>
   42: http://%HOSTIP:%HTTPPORT/339 --etag-save log/etag339
   43: </command>
   44: </client>
   45: 
   46: #
   47: # Verify data after the test has been "shot"
   48: <verify>
   49: <strip>
   50: ^User-Agent:.*
   51: </strip>
   52: <protocol>
   53: GET /339 HTTP/1.1
   54: Host: %HOSTIP:%HTTPPORT
   55: Accept: */*
   56: 
   57: </protocol>
   58: <file name="log/etag339">
   59: asdf
   60: </file>
   61: </verify>
   62: 
   63: </testcase>

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