aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-04-04 12:30:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-04-04 12:30:35 +0000
commit7fd91d70bd0bb5130d4b401b47cf0f633ec30e65 (patch)
tree96044a185fa80ba6c1cc25078748fe6d61615478 /tests/data
parent61788a0389962ecf22b3711b142a1e6783359bf1 (diff)
adjusted the formpost testcases to the new boundary string construction
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/test30416
-rw-r--r--tests/data/test3918
-rw-r--r--tests/data/test4415
-rw-r--r--tests/data/test915
4 files changed, 33 insertions, 31 deletions
diff --git a/tests/data/test304 b/tests/data/test304
index fe1559d5a..69f654ba2 100644
--- a/tests/data/test304
+++ b/tests/data/test304
@@ -27,32 +27,32 @@ aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
# Verify data after the test has been "shot"
<verify>
<strip>
-^(User-Agent:|Content-Type: multipart/form-data;|--curl).*
+^(User-Agent:|Content-Type: multipart/form-data;|------).*
</strip>
<protocol>
POST /we/want/304 HTTP/1.1
-User-Agent: curl/7.9.5-pre4 (sparc-sun-solaris2.7) libcurl 7.9.5-pre4 (OpenSSL 0.9.6c) (krb4 enabled)
+User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
Host: 127.0.0.1:8433
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
-Content-Length: 1354
+Content-Length: 1390
Expect: 100-continue
-Content-Type: multipart/form-data; boundary=curlfPpkLyYwSYaH6Fkg0WkEldoJyAQ
+Content-Type: multipart/form-data; boundary=----------------------------c3b2ef7f0bb8
---curlfPpkLyYwSYaH6Fkg0WkEldoJyAQ
+------------------------------c3b2ef7f0bb8
Content-Disposition: form-data; name="name"
daniel
---curlfPpkLyYwSYaH6Fkg0WkEldoJyAQ
+------------------------------c3b2ef7f0bb8
Content-Disposition: form-data; name="tool"
curl
---curlfPpkLyYwSYaH6Fkg0WkEldoJyAQ
+------------------------------c3b2ef7f0bb8
Content-Disposition: form-data; name="file"; filename="log/test304.txt"
Content-Type: text/plain
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
---curlfPpkLyYwSYaH6Fkg0WkEldoJyAQ--
+------------------------------c3b2ef7f0bb8--
</protocol>
</verify>
diff --git a/tests/data/test39 b/tests/data/test39
index 52c35a5c4..e4f7f3cf7 100644
--- a/tests/data/test39
+++ b/tests/data/test39
@@ -30,27 +30,27 @@ foo
# Verify data after the test has been "shot"
<verify>
<strip>
-^(User-Agent:|Content-Type: multipart/form-data;|--curl).*
+^(User-Agent:|Content-Type: multipart/form-data;|-------).*
</strip>
<protocol>
POST /we/want/39 HTTP/1.1
-User-Agent: curl/7.9.5 (sparc-sun-solaris2.7) libcurl 7.9.5 (OpenSSL 0.9.6c) (krb4 enabled)
+User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
-Content-Length: 553
+Content-Length: 598
Expect: 100-continue
-Content-Type: multipart/form-data; boundary=curl4T+HO20DMiXx0k2FI9gR0lqf7C/
+Content-Type: multipart/form-data; boundary=----------------------------24e78000bd32
---curl4T+HO20DMiXx0k2FI9gR0lqf7C/
+------------------------------24e78000bd32
Content-Disposition: form-data; name="name"
daniel
---curl4T+HO20DMiXx0k2FI9gR0lqf7C/
+------------------------------24e78000bd32
Content-Disposition: form-data; name="tool"
curl
---curl4T+HO20DMiXx0k2FI9gR0lqf7C/
+------------------------------24e78000bd32
Content-Disposition: form-data; name="file"; filename="fakerfile"
Content-Type: moo/foobar
@@ -59,7 +59,7 @@ This is a bar foo
bar
foo
---curl4T+HO20DMiXx0k2FI9gR0lqf7C/
+------------------------------24e78000bd32
Content-Disposition: form-data; name="file2"; filename="log/test39.txt"
Content-Type: text/plain
@@ -68,6 +68,6 @@ This is a bar foo
bar
foo
---curl4T+HO20DMiXx0k2FI9gR0lqf7C/--
+------------------------------24e78000bd32--
</protocol>
</verify>
diff --git a/tests/data/test44 b/tests/data/test44
index 8a1d29247..14fa41b8c 100644
--- a/tests/data/test44
+++ b/tests/data/test44
@@ -29,32 +29,33 @@ bar
# Verify data after the test has been "shot"
<verify>
<strip>
-^(User-Agent:|Content-Type: multipart/form-data;|--curl).*
+^(User-Agent:|Content-Type: multipart/form-data;|------).*
</strip>
<protocol>
POST /we/want/44 HTTP/1.1
+User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
-Content-Length: 376
-Content-Type: multipart/form-data; boundary=curluczemxkcWWsxptLlAImrFQHwQ3W
+Content-Length: 412
+Content-Type: multipart/form-data; boundary=----------------------------7c633d5c27ce
---curluczemxkcWWsxptLlAImrFQHwQ3W
+------------------------------7c633d5c27ce
Content-Disposition: form-data; name="name"
daniel
---curluczemxkcWWsxptLlAImrFQHwQ3W
+------------------------------7c633d5c27ce
Content-Disposition: form-data; name="tool"
curl
---curluczemxkcWWsxptLlAImrFQHwQ3W
+------------------------------7c633d5c27ce
Content-Disposition: form-data; name="file"; filename="log/test44.txt"
Content-Type: text/plain
foo-
This is a moo-
bar
---curluczemxkcWWsxptLlAImrFQHwQ3W--
+------------------------------7c633d5c27ce--
</protocol>
</verify>
diff --git a/tests/data/test9 b/tests/data/test9
index cfa981816..ec5b3d35b 100644
--- a/tests/data/test9
+++ b/tests/data/test9
@@ -29,33 +29,34 @@ bar
# Verify data after the test has been "shot"
<verify>
<strip>
-^(User-Agent:|Content-Type: multipart/form-data;|--curl).*
+^(User-Agent:|Content-Type: multipart/form-data;|------------).*
</strip>
<protocol>
POST /we/want/9 HTTP/1.1
+User-Agent: curl/7.10.4 (i686-pc-linux-gnu) libcurl/7.10.4 OpenSSL/0.9.7a ipv6 zlib/1.1.3
Host: 127.0.0.1:8999
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
-Content-Length: 375
+Content-Length: 411
Expect: 100-continue
-Content-Type: multipart/form-data; boundary=curluczemxkcWWsxptLlAImrFQHwQ3W
+Content-Type: multipart/form-data; boundary=----------------------------9ef8d6205763
---curluczemxkcWWsxptLlAImrFQHwQ3W
+------------------------------9ef8d6205763
Content-Disposition: form-data; name="name"
daniel
---curluczemxkcWWsxptLlAImrFQHwQ3W
+------------------------------9ef8d6205763
Content-Disposition: form-data; name="tool"
curl
---curluczemxkcWWsxptLlAImrFQHwQ3W
+------------------------------9ef8d6205763
Content-Disposition: form-data; name="file"; filename="log/test9.txt"
Content-Type: text/plain
foo-
This is a moo-
bar
---curluczemxkcWWsxptLlAImrFQHwQ3W--
+------------------------------9ef8d6205763--
</protocol>
</verify>