Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
7fd91d70
Commit
7fd91d70
authored
22 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
adjusted the formpost testcases to the new boundary string construction
parent
61788a03
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/data/test304
+8
-8
8 additions, 8 deletions
tests/data/test304
tests/data/test39
+9
-9
9 additions, 9 deletions
tests/data/test39
tests/data/test44
+8
-7
8 additions, 7 deletions
tests/data/test44
tests/data/test9
+8
-7
8 additions, 7 deletions
tests/data/test9
with
33 additions
and
31 deletions
tests/data/test304
+
8
−
8
View file @
7fd91d70
...
...
@@ -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-pre
4
(
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: 13
54
Content-Length: 13
90
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>
This diff is collapsed.
Click to expand it.
tests/data/test39
+
9
−
9
View file @
7fd91d70
...
...
@@ -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: 5
53
Content-Length: 5
98
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>
This diff is collapsed.
Click to expand it.
tests/data/test44
+
8
−
7
View file @
7fd91d70
...
...
@@ -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>
This diff is collapsed.
Click to expand it.
tests/data/test9
+
8
−
7
View file @
7fd91d70
...
...
@@ -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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment