adjusted the formpost testcases to the new boundary string construction

This commit is contained in:
Daniel Stenberg
2003-04-04 12:30:35 +00:00
parent 61788a0389
commit 7fd91d70bd
4 changed files with 33 additions and 31 deletions

View File

@@ -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>