blob: 639523d99591c584fc5628a2e29076fc3295bed2 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6HTTP PUT
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 OK
14Date: Thu, 01 Nov 2001 14:49:00 GMT
15Content-Type: text/html
16Content-Length: 6
17
18hello
19</data>
20<datacheck>
21HTTP/1.1 200 OK
22Date: Thu, 01 Nov 2001 14:49:00 GMT
23Content-Type: text/html
24Content-Length: 6
25
26hello
27HTTP/1.1 200 OK
28Date: Thu, 01 Nov 2001 14:49:00 GMT
29Content-Type: text/html
30Content-Length: 6
31
32hello
33</datacheck>
34</reply>
35
36# Client-side
37<client>
38<server>
39http
40</server>
41
42<name>
43CURLOPT_POST after CURLOPT_UPLOAD reusing handle
44</name>
45<tool>
46lib%TESTNUMBER
47</tool>
48
49<command>
50http://%HOSTIP:%HTTPPORT/%TESTNUMBER
51</command>
52</client>
53
54# Verify data after the test has been "shot"
55<verify>
56<protocol>
57PUT /%TESTNUMBER HTTP/1.1
58Host: %HOSTIP:%HTTPPORT
59Accept: */*
60Content-Length: 22
61Expect: 100-continue
62
63This is test PUT data
64POST /1948 HTTP/1.1
65Host: %HOSTIP:%HTTPPORT
66Accept: */*
67Content-Length: 22
68Content-Type: application/x-www-form-urlencoded
69
70This is test PUT data
71</protocol>
72</verify>
73</testcase>