File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test12
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: Content-Range
    7: </keywords>
    8: </info>
    9: 
   10: # Server-side
   11: <reply>
   12: <data>
   13: HTTP/1.1 206 Partial Content
   14: Date: Mon, 13 Nov 2000 13:41:09 GMT
   15: Server: Apache/1.3.11 (Unix) PHP/3.0.14
   16: Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
   17: ETag: "21025-dc7-39462498"
   18: Accept-Ranges: bytes
   19: Content-Length: 101
   20: Content-Range: bytes 100-200/3527
   21: Connection: close
   22: Content-Type: text/html
   23: 
   24: ..partial data returned from the
   25: server as a result of setting an explicit byte range
   26: in the request
   27: </data>
   28: </reply>
   29: 
   30: # Client-side
   31: <client>
   32: <server>
   33: http
   34: </server>
   35:  <name>
   36: HTTP range support
   37:  </name>
   38:  <command>
   39: http://%HOSTIP:%HTTPPORT/want/12 -r 100-200
   40: </command>
   41: </client>
   42: 
   43: # Verify data after the test has been "shot"
   44: <verify>
   45: <strip>
   46: ^User-Agent:.*
   47: </strip>
   48: <protocol>
   49: GET /want/12 HTTP/1.1
   50: Host: %HOSTIP:%HTTPPORT
   51: Range: bytes=100-200
   52: Accept: */*
   53: 
   54: </protocol>
   55: </verify>
   56: </testcase>

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