mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:37:30 +03:00
parent
73b732e3e8
commit
7109b427fb
3 changed files with 5 additions and 8 deletions
|
|
@ -3,7 +3,6 @@
|
|||
<keywords>
|
||||
HTTP
|
||||
HTTP FORMPOST
|
||||
notxml
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
|
|
@ -34,7 +33,7 @@ http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER --form-escape
|
|||
-F name=daniel
|
||||
-F tool=curl
|
||||
--form-string "str1=@literal"
|
||||
--form-string "str2=<verbatim;type=xxx/yyy"
|
||||
--form-string "str2=%LTverbatim;type=xxx/yyy"
|
||||
-F "file=@%LOGDIR/test%TESTNUMBER.txt;type=moo/foobar;filename=fakerfile"
|
||||
-F file2=@%LOGDIR/test%TESTNUMBER.txt
|
||||
-F "file3=@\"%LOGDIR/test%TESTNUMBER.txt\";type=mo/foo;filename=\"f\\\\\\\\ak\\\\\\er,\\\\an\\d;.t\\\"xt\""
|
||||
|
|
@ -77,7 +76,7 @@ Content-Disposition: form-data; name="str1"%CR
|
|||
------------------------------24e78000bd32%CR
|
||||
Content-Disposition: form-data; name="str2"%CR
|
||||
%CR
|
||||
<verbatim;type=xxx/yyy%CR
|
||||
%LTverbatim;type=xxx/yyy%CR
|
||||
------------------------------24e78000bd32%CR
|
||||
Content-Disposition: form-data; name="file"; filename="fakerfile"%CR
|
||||
Content-Type: moo/foobar%CR
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<keywords>
|
||||
HTTP
|
||||
HTTP POST
|
||||
notxml
|
||||
</keywords>
|
||||
</info>
|
||||
|
||||
|
|
@ -31,7 +30,7 @@ http
|
|||
HTTP multipart formpost with contents from a file
|
||||
</name>
|
||||
<command>
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -F "name=<%LOGDIR/field%TESTNUMBER" -F tool=curl
|
||||
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -F "name=%LT%LOGDIR/field%TESTNUMBER" -F tool=curl
|
||||
</command>
|
||||
# We create this file before the command is invoked!
|
||||
<file name="%LOGDIR/field%TESTNUMBER">
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@
|
|||
<keywords>
|
||||
HTTP
|
||||
HTTP FORMPOST
|
||||
notxml
|
||||
</keywords>
|
||||
</info>
|
||||
# Server-side
|
||||
|
|
@ -34,7 +33,7 @@ http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER
|
|||
-F name=daniel
|
||||
-F tool=curl
|
||||
--form-string "str1=@literal"
|
||||
--form-string "str2=<verbatim;type=xxx/yyy"
|
||||
--form-string "str2=%LTverbatim;type=xxx/yyy"
|
||||
-F "file=@%LOGDIR/test%TESTNUMBER.txt;type=moo/foobar;filename=fakerfile"
|
||||
-F file2=@%LOGDIR/test%TESTNUMBER.txt
|
||||
-F "file3=@\"%LOGDIR/test%TESTNUMBER.txt\";type=mo/foo;filename=\"f\\\\\\\\ak\\\\\\er,\\\\an\\d;.t\\\"xt\""
|
||||
|
|
@ -77,7 +76,7 @@ Content-Disposition: form-data; name="str1"%CR
|
|||
------------------------------24e78000bd32%CR
|
||||
Content-Disposition: form-data; name="str2"%CR
|
||||
%CR
|
||||
<verbatim;type=xxx/yyy%CR
|
||||
%LTverbatim;type=xxx/yyy%CR
|
||||
------------------------------24e78000bd32%CR
|
||||
Content-Disposition: form-data; name="file"; filename="fakerfile"%CR
|
||||
Content-Type: moo/foobar%CR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue