Annotation of embedaddon/curl/tests/data/test1566, revision 1.1
1.1 ! misho 1: <testcase>
! 2: <info>
! 3: <keywords>
! 4: HTTP
! 5: HTTP GET
! 6: --etag-compare
! 7: </keywords>
! 8: </info>
! 9:
! 10: #
! 11: # Server-side
! 12: <reply>
! 13: <data nocheck="yes">
! 14: HTTP/1.1 304 Not modified
! 15: Date: Thu, 09 Nov 2010 14:49:00 GMT
! 16: Server: test-server/fake
! 17: Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
! 18: ETag: "21025-dc7-39462498"
! 19: Connection: close
! 20: Content-Type: text/html
! 21:
! 22: </data>
! 23: </reply>
! 24:
! 25: #
! 26: # Client-side
! 27: <client>
! 28: <server>
! 29: http
! 30: </server>
! 31: <name>
! 32: --etag-compare that gets a 304 back shouldn't overwrite the file
! 33: </name>
! 34: <command option="no-output,no-include">
! 35: http://%HOSTIP:%HTTPPORT/1566 -o log/output1566 --etag-compare log/etag1566
! 36: </command>
! 37: <file name="log/etag1566">
! 38: 123456
! 39: </file>
! 40: <file1 name="log/output1566">
! 41: downloaded already
! 42: </file1>
! 43:
! 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 /1566 HTTP/1.1
! 54: Host: %HOSTIP:%HTTPPORT
! 55: Accept: */*
! 56: If-None-Match: "123456"
! 57:
! 58: </protocol>
! 59:
! 60: # verify that the target file is untouched
! 61: <file name="log/output1566">
! 62: downloaded already
! 63: </file>
! 64: </verify>
! 65: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>