2020-10-02 06:12:41 +08:00
|
|
|
|
<testcase>
|
|
|
|
|
<info>
|
|
|
|
|
<keywords>
|
|
|
|
|
HTTP
|
|
|
|
|
HTTP POST
|
|
|
|
|
--libcurl
|
|
|
|
|
</keywords>
|
|
|
|
|
</info>
|
|
|
|
|
|
|
|
|
|
# Server-side
|
|
|
|
|
<reply>
|
|
|
|
|
<data>
|
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
|
Date: Thu, 29 Jul 2008 14:49:00 GMT
|
|
|
|
|
Server: test-server/fake
|
|
|
|
|
Content-Length: 0
|
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
|
|
</data>
|
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
|
<client>
|
|
|
|
|
<server>
|
|
|
|
|
http
|
|
|
|
|
</server>
|
|
|
|
|
<name>
|
|
|
|
|
--libcurl for POST with binary content
|
|
|
|
|
</name>
|
|
|
|
|
<setenv>
|
|
|
|
|
SSL_CERT_FILE=
|
|
|
|
|
</setenv>
|
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
|
http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER --libcurl log/test%TESTNUMBER.c --data-binary @log/%TESTNUMBER-upload
|
2020-10-02 06:12:41 +08:00
|
|
|
|
</command>
|
|
|
|
|
# abcd |