Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test1002
blob6a2afed173ecabedb6dec0a727ac0eea77ee9455
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP Digest auth
6 HTTP PUT
7 Resume
8 Content-Range
9 CUSTOMREQUEST
10 </keywords>
11 </info>
13 <reply>
14 <data>
15 HTTP/1.1 100 Continue
16 Server: Microsoft-IIS/5.0
17 Date: Sun, 03 Apr 2005 14:57:45 GMT
18 X-Powered-By: ASP.NET
20 HTTP/1.1 401 authentication please swsbounce
21 Server: Microsoft-IIS/6.0
22 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
23 Content-Type: text/html; charset=iso-8859-1
24 Content-Length: 0
26 </data>
27 <data1000>
28 HTTP/1.1 200 A OK
29 Server: Microsoft-IIS/6.0
30 Content-Type: text/html; charset=iso-8859-1
31 Content-Length: 3
34 </data1000>
36 <datacheck>
37 HTTP/1.1 100 Continue
38 Server: Microsoft-IIS/5.0
39 Date: Sun, 03 Apr 2005 14:57:45 GMT
40 X-Powered-By: ASP.NET
42 HTTP/1.1 401 authentication please swsbounce
43 Server: Microsoft-IIS/6.0
44 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
45 Content-Type: text/html; charset=iso-8859-1
46 Content-Length: 0
48 HTTP/1.1 200 A OK
49 Server: Microsoft-IIS/6.0
50 Content-Type: text/html; charset=iso-8859-1
51 Content-Length: 3
54 </datacheck>
56 </reply>
58 # Client-side
59 <client>
60
61 <server>
62 http
63 </server>
64  <name>
65 HTTP POST --digest with PUT and resumed upload and modified method, twice
66  </name>
67  <command>
68 http://%HOSTIP:%HTTPPORT/1002.upload1 -T log/1002 http://%HOSTIP:%HTTPPORT/1002.upload2 -T log/1002 -u auser:apasswd --digest -x  http://%HOSTIP:%HTTPPORT -C 2 -X GET
69 </command>
70 <file name="log/1002">
71 test
72 </file>
73 </client>
75 # Verify data after the test has been "shot"
76 <verify>
77 <strip>
78 ^User-Agent:.*
79 </strip>
80 <protocol>
81 GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
82 Content-Range: bytes 2-4/5
83 User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6
84 Host: %HOSTIP:%HTTPPORT
85 Pragma: no-cache
86 Accept: */*
87 Proxy-Connection: Keep-Alive
88 Content-Length: 0
89 Expect: 100-continue
91 GET http://%HOSTIP:%HTTPPORT/1002.upload1 HTTP/1.1
92 Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload1", response="198aa9b6acb4b0c71d02a197a5e41f54"
93 Content-Range: bytes 2-4/5
94 Host: %HOSTIP:%HTTPPORT
95 Pragma: no-cache
96 Accept: */*
97 Proxy-Connection: Keep-Alive
98 Content-Length: 3
99 Expect: 100-continue
102 GET http://%HOSTIP:%HTTPPORT/1002.upload2 HTTP/1.1
103 Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/1002.upload2", response="d711f0d2042786d930de635ba0d1a1d0"
104 Content-Range: bytes 2-4/5
105 User-Agent: curl/7.16.1
106 Host: %HOSTIP:%HTTPPORT
107 Pragma: no-cache
108 Accept: */*
109 Proxy-Connection: Keep-Alive
110 Content-Length: 3
111 Expect: 100-continue
114 </protocol>
115 </verify>
116 </testcase>