wolfSSL: Use LIBWOLFSSL_VERSION_HEX to decide whether or not to use WOLFSSL_X509_V_OK
[privoxy.git] / tests / cts / chunked-transfer-encoding / data / test28
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 chunked transfer encoding
7 # XXX: Test requires "writesize" support that hasn't been upstreamed yet.
8 skip
9 </keywords>
10 </info>
11
12 <reply>
13 <data>
14 HTTP/1.1 200 OK\r
15 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
16 Connection: keep-alive\r
17 Content-Type: text/html\r
18 Transfer-Encoding: chunked\r
19 \r
20 FB\r
21 %repeat[50 x 0%0d%0a%0d%0a]%
22 \r
23 0\r
24 \r
25 </data>
26 <data1>
27 HTTP/1.1 200 OK\r
28 Date: Thu, 22 Jul 2010 11:22:33 GMT\r
29 Connection: close\r
30 X-Connection: swsclose\r
31 Content-Type: text/html\r
32 \r
33 Here's your unchunked data.
34 </data1>
35 # The write size is chosen so that Privoxy's first read
36 # gets data that ends in 0\r\n\r\n but does not actually
37 # contain the last chunk.
38 <servercmd>
39 writesize: 202
40 writedelay: 100
41 </servercmd>
42 </reply>
43
44 <client>
45 <server>
46 http
47 </server>
48 <name>
49 Chunked transfer encoding - Chunk that contains lots of potential "last-chunks" as data. Filtering disabled.
50 </name>
51 <features>
52 proxy
53 </features>
54 # Set a custom User-Agent so the request size does
55 # not depend on whether or not curl is a debug build.
56 <command>
57 --user-agent "Blafasel/1 beta" --raw http://%HOSTIP:%HTTPPORT/no-filter/chunked-content/%TESTNUMBER0000 --max-time 2 --raw http://%HOSTIP:%HTTPPORT/no-filter/unchunked-content/%TESTNUMBER0001
58 </command>
59 </client>
60
61 <verify>
62 <protocol>
63 GET /no-filter/chunked-content/%TESTNUMBER0000 HTTP/1.1\r
64 Host: %HOSTIP:%HTTPPORT\r
65 User-Agent: Blafasel/1 beta\r
66 Accept: */*\r
67 \r
68 GET /no-filter/unchunked-content/%TESTNUMBER0001 HTTP/1.1\r
69 Host: %HOSTIP:%HTTPPORT\r
70 User-Agent: Blafasel/1 beta\r
71 Accept: */*\r
72 \r
73 </protocol>
74 <errorcode>
75 0
76 </errorcode>
77 </verify>
78 </testcase>