Annotation of embedaddon/curl/tests/data/test71, revision 1.1
1.1 ! misho 1: <testcase>
! 2: <info>
! 3: <keywords>
! 4: HTTP
! 5: HTTP FORMPOST
! 6: config file
! 7: </keywords>
! 8: </info>
! 9: # Server-side
! 10: <reply>
! 11: <data>
! 12: HTTP/1.1 200 OK swsclose
! 13: Date: Thu, 09 Nov 2010 14:49:00 GMT
! 14: Server: test-server/fake
! 15: Content-Length: 11
! 16:
! 17: blablabla
! 18:
! 19: </data>
! 20: </reply>
! 21:
! 22: # Client-side
! 23: <client>
! 24: <server>
! 25: http
! 26: </server>
! 27: <name>
! 28: HTTP and -F upload in config file
! 29: </name>
! 30: <stdin>
! 31: -F name=daniel
! 32: -F tool=curl
! 33: -F file=@log/test71.txt
! 34: user-agent = ""
! 35: </stdin>
! 36: <command>
! 37: http://%HOSTIP:%HTTPPORT/we/want/71 -K -
! 38: </command>
! 39: # We create this file before the command is invoked!
! 40: <file name="log/test71.txt">
! 41: foo-
! 42: This is a moo-
! 43: bar
! 44: </file>
! 45: </client>
! 46:
! 47: # Verify data after the test has been "shot"
! 48: <verify>
! 49: <strip>
! 50: ^(Content-Type: multipart/form-data;|------------).*
! 51: </strip>
! 52: <protocol>
! 53: POST /we/want/71 HTTP/1.1
! 54: Host: %HOSTIP:%HTTPPORT
! 55: Accept: */*
! 56: Content-Length: 408
! 57: Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
! 58:
! 59: ------------------------------9ef8d6205763
! 60: Content-Disposition: form-data; name="name"
! 61:
! 62: daniel
! 63: ------------------------------9ef8d6205763
! 64: Content-Disposition: form-data; name="tool"
! 65:
! 66: curl
! 67: ------------------------------9ef8d6205763
! 68: Content-Disposition: form-data; name="file"; filename="test71.txt"
! 69: Content-Type: text/plain
! 70:
! 71: foo-
! 72: This is a moo-
! 73: bar
! 74:
! 75: ------------------------------9ef8d6205763--
! 76: </protocol>
! 77: </verify>
! 78: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>