xref: /curl/tests/data/test1082 (revision 31a29fc6)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6--interface
7</keywords>
8</info>
9
10#
11# Server-side
12<reply>
13<data>
14HTTP/1.1 200 OK
15Date: Mon, 28 Jul 2008 14:49:00 GMT
16Server: test-server/fake
17Content-Length: 6
18Connection: close
19Content-Type: text/plain
20
21-foo-
22</data>
23</reply>
24
25#
26# Client-side
27<client>
28<server>
29http
30</server>
31<name>
32HTTP GET with localhost --interface
33</name>
34<command>
35http://%HOSTIP:%HTTPPORT/%TESTNUMBER -4 --interface 127.0.0.1
36</command>
37<precheck>
38%PERL -e "print 'Test requires default test client host address' if ( '%CLIENTIP' ne '127.0.0.1' );"
39</precheck>
40</client>
41
42#
43# Verify data after the test has been "shot"
44<verify>
45<protocol>
46GET /%TESTNUMBER HTTP/1.1
47Host: %HOSTIP:%HTTPPORT
48User-Agent: curl/%VERSION
49Accept: */*
50
51</protocol>
52</verify>
53</testcase>
54