Commit 8dfddd27 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Added tests 1082 through 1085 to test symbolic --interface parameters

parent 544f2f74
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,9 @@

                                  Changelog

Daniel Fandrich (8 Oct 2008)
- Added tests 1082 through 1085 to test symbolic --interface parameters

Daniel Stenberg (8 Oct 2008)
- Igor filed bug #2111613 (http://curl.haxx.se/bug/view.cgi?id=2111613) that
  eventually identified a flaw in how the multi_socket interface in some cases
+1 −1
Original line number Diff line number Diff line
@@ -58,7 +58,7 @@ EXTRA_DIST = test1 test108 test117 test127 test20 test27 test34 test46 \
 test1056 test1057 test1058 test1059 test1060 test1061 test1062 test1063   \
 test1064 test1065 test1066 test1067 test1068 test1069 test1070 test1071   \
 test1072 test1073 test1074 test1075 test1076 test1077 test1078 test1079   \
 test1080 test1081
 test1080 test1081 test1082 test1083 test1084 test1085

filecheck:
	@mkdir test-place; \
+1 −1
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ Content-Type: text/plain
http
</server>
 <name>
HTTP GET with localhost --interface
HTTP GET with numeric localhost --interface
 </name>
 <command>
http://%HOSTIP:%HTTPPORT/1045 --interface %CLIENTIP
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ ipv6
http-ipv6
</server>
 <name>
HTTP-IPv6 GET with localhost --interface
HTTP-IPv6 GET with numeric localhost --interface
 </name>
 <command>
-g "http://%HOST6IP:%HTTP6PORT/1046" --interface ::1

tests/data/test1082

0 → 100644
+55 −0
Original line number Diff line number Diff line
<testcase>
<info>
<keywords>
HTTP
HTTP GET
--interface
</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>
<server>
http
</server>
 <name>
HTTP GET with localhost --interface
 </name>
 <command>
http://%HOSTIP:%HTTPPORT/1082 --interface localhost
</command>
<precheck>
perl -e "print 'Test requires default test server host address' if ( '%CLIENTIP' ne '127.0.0.1' );"
</precheck>
</client>

#
# Verify data after the test has been "shot"
<verify>
<strip>
^User-Agent:.*
</strip>
<protocol>
GET /1082 HTTP/1.1
Host: %HOSTIP:%HTTPPORT
Accept: */*

</protocol>
</verify>
</testcase>
Loading