xref: /curl/tests/data/test2084 (revision a517378d)
1<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>
55