2008-07-29 02:39:32 +08:00
|
|
|
<testcase>
|
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
--interface
|
|
|
|
IPv6
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
|
|
|
Date: Mon, 28 Jul 2008 14:49:00 GMT
|
|
|
|
Server: test-server/fake
|
|
|
|
Content-Length: 6
|
|
|
|
Connection: close
|
|
|
|
Content-Type: text/plain
|
|
|
|
|
|
|
|
-foo-
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<features>
|
|
|
|
ipv6
|
|
|
|
</features>
|
|
|
|
<server>
|
|
|
|
http-ipv6
|
|
|
|
</server>
|
|
|
|
<name>
|
2008-10-09 05:46:55 +08:00
|
|
|
HTTP-IPv6 GET with numeric localhost --interface
|
2008-07-29 02:39:32 +08:00
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
-g "http://%HOST6IP:%HTTP6PORT/%TESTNUMBER" --interface ::1
|
2008-07-29 02:39:32 +08:00
|
|
|
</command>
|
2008-07-29 09:05:28 +08:00
|
|
|
# --interface doesn't accept an address surrounded by [] so %CLIENT6IP is out
|
2008-07-29 02:39:32 +08:00
|
|
|
<precheck>
|
2019-03-24 20:02:05 +08:00
|
|
|
perl -e "print 'Test requires default test client host address' if ( '%CLIENT6IP' ne '[::1]' );"
|
2008-07-29 02:39:32 +08:00
|
|
|
</precheck>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-13 00:38:26 +08:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2008-07-29 02:39:32 +08:00
|
|
|
Host: %HOST6IP:%HTTP6PORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2008-07-29 02:39:32 +08:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
|
|
|
</testcase>
|