diff options
author | nikita <tek.no.katze@gmail.com> | 2020-04-01 14:27:11 +0200 |
---|---|---|
committer | nikita <tek.no.katze@gmail.com> | 2020-04-01 14:27:11 +0200 |
commit | 10e1f0a795a8d2375eeb30b01c71363fdbcc5895 (patch) | |
tree | b6c084e5021b8d5c40b6aecd495798d187d2fcd5 /tests/data/test672 | |
parent | 69758416170305e04324a85bfe74cd62673e298b (diff) | |
parent | b81e0b07784dc4c1e8d0a86194b9d28776d071c0 (diff) | |
download | gnurl-10e1f0a795a8d2375eeb30b01c71363fdbcc5895.tar.gz gnurl-10e1f0a795a8d2375eeb30b01c71363fdbcc5895.tar.bz2 gnurl-10e1f0a795a8d2375eeb30b01c71363fdbcc5895.zip |
Merge tag 'curl-7_69_1'
7.69.1
Diffstat (limited to 'tests/data/test672')
-rw-r--r-- | tests/data/test672 | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/tests/data/test672 b/tests/data/test672 new file mode 100644 index 000000000..9c5f24556 --- /dev/null +++ b/tests/data/test672 @@ -0,0 +1,72 @@ +<testcase> +<info> +<keywords> +HTTP +HTTP POST +FORM +</keywords> +</info> + +# +# Server-side +<reply> +<data> +HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake swsclose
+Connection: close
+Content-Type: text/html
+
+hello +</data> +<datacheck> +HTTP/1.1 200 OK
+Date: Thu, 09 Nov 2010 14:49:00 GMT
+Server: test-server/fake swsclose
+Connection: close
+Content-Type: text/html
+
+hello +</datacheck> +</reply> + +# Client-side +<client> +<server> +http +</server> +# tool is what to use instead of 'curl' +<tool> +lib672 +</tool> + + <name> +Request pause from form read callback: multi + </name> + <command> +http://%HOSTIP:%HTTPPORT/672 +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<strippart> +s/^--------------------------[a-z0-9]*/------------------------------/ +s/boundary=------------------------[a-z0-9]*/boundary=----------------------------/ +</strippart> +<protocol> +POST /672 HTTP/1.1
+Host: %HOSTIP:%HTTPPORT
+Accept: */*
+Content-Length: 142
+Content-Type: multipart/form-data; boundary=----------------------------
+
+------------------------------
+Content-Disposition: form-data; name="field"
+
+AB
+--------------------------------
+</protocol> +</verify> +</testcase> |