wolfSSL: Use LIBWOLFSSL_VERSION_HEX to decide whether or not to use WOLFSSL_X509_V_OK
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test23
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 </keywords>
8 </info>
9
10 # This reply specifies a Content-Length header even though the response is chunk-encoded.
11 # Per RFC 2616 4.4 3 the Content-Length header must be ignored.
12 <reply>
13 <data>
14 HTTP/1.1 200 OK\r
15 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
16 Connection: close\r
17 Content-Type: text/html\r
18 Transfer-Encoding: chunked\r
19 Content-Length: 12345\r
20 X-Control: swsclose\r
21 \r
22 6\r
23 AAAAA
24 \r
25 0\r
26 \r
27 </data>
28 </reply>
29
30 <proxy-reply>
31 <data>
32 HTTP/1.1 200 OK\r
33 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
34 Connection: close\r
35 Content-Type: text/html\r
36 Content-Length: 6\r
37 X-Control: swsclose\r
38 \r
39 AAAAA
40 </data>
41 </proxy-reply>
42
43 <client>
44 <server>
45 http
46 </server>
47 <name>
48 Chunked transfer encoding with Content-Lenght header set
49 </name>
50 <features>
51 proxy
52 </features>
53 <command>
54 http://%HOSTIP:%HTTPPORT/chunked-transfer-encoding/%TESTNUMBER
55 </command>
56 </client>
57
58 <verify>
59 <protocol>
60 GET /chunked-transfer-encoding/%TESTNUMBER HTTP/1.1\r
61 Host: %HOSTIP:%HTTPPORT\r
62 User-Agent: curl/%VERSION\r
63 Accept: */*\r
64 \r
65 </protocol>
66 <errorcode>
67 0
68 </errorcode>
69 </verify>
70 </testcase>