blob: ced7086c4b331dda1e43808447fb6a016a050fa0 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5</keywords>
6</info>
7
8# Server-side
9<reply>
10<data nocheck="yes">
11HTTP/1.1 200 OK
12Date: Tue, 09 Nov 2010 14:49:00 GMT
13Server: test-server/fake
14Content-Type: text/html
15Content-Length: 0
16
17</data>
18</reply>
19
20# Client-side
21<client>
22<server>
23http
24</server>
25
26<name>
27Pre-request callback for HTTP with callback terminating transfer
28</name>
29<tool>
30libprereq
31</tool>
32
33<command>
34%HOSTIP:%HTTPPORT/%TESTNUMBER#err
35</command>
36</client>
37
38# Verify data after the test has been "shot"
39<verify>
40<errorcode>
4142
42</errorcode>
43<stripfile>
44s/^Local port = \d+/Local port = stripped/
45</stripfile>
46<stdout>
47Connected to %HOSTIP
48Connected from %CLIENTIP
49Remote port = %HTTPPORT
50Local port = stripped
51Returning = 1
52</stdout>
53</verify>
54</testcase>