File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / curl / tests / data / test1434
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: Resume
    7: </keywords>
    8: </info>
    9: 
   10: # Server-side
   11: <reply>
   12: # Some servers (e.g. Apache 1.2) respond this way to an invalid byte range
   13: <data>
   14: HTTP/1.1 200 OK
   15: Connection: close
   16: Content-Length: 100
   17: Content-Type: text/plain
   18: 
   19: 012345678
   20: 012345678
   21: 012345678
   22: 012345678
   23: 012345678
   24: 012345678
   25: 012345678
   26: 012345678
   27: 012345678
   28: 012345678
   29: </data>
   30: 
   31: # The file data that exists at the start of the test must be included in
   32: # the verification.
   33: <datacheck>
   34: 012345678
   35: 012345678
   36: 012345678
   37: 012345678
   38: 012345678
   39: 012345678
   40: 012345678
   41: 012345678
   42: 012345678
   43: 012345678
   44: HTTP/1.1 200 OK
   45: Connection: close
   46: Content-Length: 100
   47: Content-Type: text/plain
   48: 
   49: </datacheck>
   50: </reply>
   51: 
   52: # Client-side
   53: <client>
   54: <server>
   55: http
   56: </server>
   57:  <name>
   58: HTTP GET resume at exactly the existing file size is fine
   59:  </name>
   60:  <command>
   61: http://%HOSTIP:%HTTPPORT/1434 -C 100
   62: </command>
   63: <file name="log/curl1434.out">
   64: 012345678
   65: 012345678
   66: 012345678
   67: 012345678
   68: 012345678
   69: 012345678
   70: 012345678
   71: 012345678
   72: 012345678
   73: 012345678
   74: </file>
   75: </client>
   76: 
   77: # Verify data after the test has been "shot"
   78: <verify>
   79: <strip>
   80: ^User-Agent:.*
   81: </strip>
   82: <protocol>
   83: GET /1434 HTTP/1.1
   84: Host: %HOSTIP:%HTTPPORT
   85: Range: bytes=100-
   86: Accept: */*
   87: 
   88: </protocol>
   89: </verify>
   90: </testcase>

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