• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP PUT
6--anyauth
7</keywords>
8</info>
9
10# Server-side
11<reply>
12<data>
13HTTP/1.1 200 No Authorization Required swsclose
14Server: Apache/1.3.27 (Darwin) PHP/4.1.2
15Content-Type: text/html; charset=iso-8859-1
16Connection: close
17
18PUT received fine. Thank you very much
19</data>
20</reply>
21
22# Client-side
23<client>
24<server>
25http
26</server>
27 <name>
28HTTP PUT with --anyauth (when the server requires none)
29 </name>
30 <command>
31http://%HOSTIP:%HTTPPORT/156 -T log/put156 -u testuser:testpass --anyauth
32</command>
33<file name="log/put156">
34This is data we upload with PUT
35a second line
36line three
37four is the number of lines
38</file>
39</client>
40
41# Verify data after the test has been "shot"
42<verify>
43<protocol>
44PUT /156 HTTP/1.1
45Host: %HOSTIP:%HTTPPORT
46User-Agent: curl/%VERSION
47Accept: */*
48Content-Length: 85
49Expect: 100-continue
50
51This is data we upload with PUT
52a second line
53line three
54four is the number of lines
55</protocol>
56</verify>
57</testcase>
58