Annotation of embedaddon/curl/tests/data/test1041, revision 1.1.1.1

1.1       misho       1: <testcase>
                      2: # Similar to test33
                      3: <info>
                      4: <keywords>
                      5: HTTP
                      6: HTTP PUT
                      7: Resume
                      8: Content-Range
                      9: </keywords>
                     10: </info>
                     11: 
                     12: # Server-side
                     13: <reply>
                     14: <data>
                     15: HTTP/1.1 200 OK swsclose
                     16: Date: Thu, 09 Nov 2010 14:49:00 GMT
                     17: Server: test-server/fake
                     18: Accept-Ranges: bytes
                     19: Content-Length: 0
                     20: Connection: close
                     21: Content-Type: text/html
                     22: 
                     23: </data>
                     24: </reply>
                     25: 
                     26: # Client-side
                     27: <client>
                     28: <server>
                     29: http
                     30: </server>
                     31:  <name>
                     32: HTTP PUT with resume from end of already-uploaded file
                     33:  </name>
                     34: <file name="log/test1041.txt">
                     35: 012345678
                     36: 012345678
                     37: 012345678
                     38: 012345678
                     39: 012345678
                     40: 012345678
                     41: 012345678
                     42: 012345678
                     43: 012345678
                     44: 012345678
                     45: </file>
                     46:  <command>
                     47: http://%HOSTIP:%HTTPPORT/1041 -Tlog/test1041.txt -C -
                     48: </command>
                     49: </client>
                     50: 
                     51: # Verify data after the test has been "shot"
                     52: <verify>
                     53: <strip>
                     54: ^User-Agent:.*
                     55: </strip>
                     56: # curl doesn't do a HEAD request on the remote file so it has no idea whether
                     57: # it can skip part of the file or not.  Instead, it sends the entire file.
                     58: <protocol>
                     59: PUT /1041 HTTP/1.1
                     60: Host: %HOSTIP:%HTTPPORT
                     61: Content-Range: bytes 0-99/100
                     62: Accept: */*
                     63: Content-Length: 100
                     64: Expect: 100-continue
                     65: 
                     66: 012345678
                     67: 012345678
                     68: 012345678
                     69: 012345678
                     70: 012345678
                     71: 012345678
                     72: 012345678
                     73: 012345678
                     74: 012345678
                     75: 012345678
                     76: </protocol>
                     77: </verify>
                     78: </testcase>

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