Annotation of embedaddon/curl/tests/data/test39, revision 1.1
1.1 ! misho 1: <testcase>
! 2: <info>
! 3: <keywords>
! 4: HTTP
! 5: HTTP FORMPOST
! 6: </keywords>
! 7: </info>
! 8: # Server-side
! 9: <reply>
! 10: <data>
! 11: HTTP/1.1 200 OK
! 12: Date: Thu, 09 Nov 2010 14:49:00 GMT
! 13: Server: test-server/fake
! 14: Content-Length: 10
! 15:
! 16: blablabla
! 17: </data>
! 18: </reply>
! 19:
! 20: # Client-side
! 21: <client>
! 22: <server>
! 23: http
! 24: </server>
! 25: <name>
! 26: HTTP RFC1867-type formposting with filename= and type=
! 27: </name>
! 28: <command>
! 29: http://%HOSTIP:%HTTPPORT/we/want/39 -F name=daniel -F tool=curl --form-string "str1=@literal" --form-string "str2=<verbatim;type=xxx/yyy" -F "file=@log/test39.txt;type=moo/foobar;filename=fakerfile" -F file2=@log/test39.txt -F "file3=@\"log/test39.txt\";type=mo/foo;filename=\"f\\\\\\\\ak\\\\\\er,\\\\an\\d;.t\\\"xt\"" -F 'file4=@"log/test39.txt"; filename="A\\AA\"\"\\\"ZZZ"'
! 30: </command>
! 31: # We create this file before the command is invoked!
! 32: <file name="log/test39.txt">
! 33: foo bar
! 34: This is a bar foo
! 35: bar
! 36: foo
! 37: </file>
! 38: </client>
! 39:
! 40: # Verify data after the test has been "shot"
! 41: <verify>
! 42: <strip>
! 43: ^(User-Agent:|Content-Type: multipart/form-data;|-------).*
! 44: </strip>
! 45: <protocol>
! 46: POST /we/want/39 HTTP/1.1
! 47: User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
! 48: Host: %HOSTIP:%HTTPPORT
! 49: Accept: */*
! 50: Content-Length: 1184
! 51: Content-Type: multipart/form-data; boundary=----------------------------24e78000bd32
! 52:
! 53: ------------------------------24e78000bd32
! 54: Content-Disposition: form-data; name="name"
! 55:
! 56: daniel
! 57: ------------------------------24e78000bd32
! 58: Content-Disposition: form-data; name="tool"
! 59:
! 60: curl
! 61: ------------------------------24e78000bd32
! 62: Content-Disposition: form-data; name="str1"
! 63:
! 64: @literal
! 65: ------------------------------24e78000bd32
! 66: Content-Disposition: form-data; name="str2"
! 67:
! 68: <verbatim;type=xxx/yyy
! 69: ------------------------------24e78000bd32
! 70: Content-Disposition: form-data; name="file"; filename="fakerfile"
! 71: Content-Type: moo/foobar
! 72:
! 73: foo bar
! 74: This is a bar foo
! 75: bar
! 76: foo
! 77:
! 78: ------------------------------24e78000bd32
! 79: Content-Disposition: form-data; name="file2"; filename="test39.txt"
! 80: Content-Type: text/plain
! 81:
! 82: foo bar
! 83: This is a bar foo
! 84: bar
! 85: foo
! 86:
! 87: ------------------------------24e78000bd32
! 88: Content-Disposition: form-data; name="file3"; filename="f\\\\ak\\\\er,\\an\\d;.t\"xt"
! 89: Content-Type: mo/foo
! 90:
! 91: foo bar
! 92: This is a bar foo
! 93: bar
! 94: foo
! 95:
! 96: ------------------------------24e78000bd32
! 97: Content-Disposition: form-data; name="file4"; filename="A\\AA\"\"\\\"ZZZ"
! 98: Content-Type: text/plain
! 99:
! 100: foo bar
! 101: This is a bar foo
! 102: bar
! 103: foo
! 104:
! 105: ------------------------------24e78000bd32--
! 106: </protocol>
! 107: </verify>
! 108: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>