]> granicus.if.org Git - curl/commitdiff
test565: Don't hardcode IP:PORT
authorTor Arntsen <tor@spacetec.no>
Thu, 9 Sep 2010 10:26:36 +0000 (12:26 +0200)
committerTor Arntsen <tor@spacetec.no>
Thu, 9 Sep 2010 10:42:28 +0000 (12:42 +0200)
Use %HOSTIP:%HTTPPORT instead of 127.0.0.1:8990 so that
verification works if the baseport change option is used
when executing runtests.pl.

tests/data/test565

index 838941fefb927e834998990f74660a3e2da0998a..fdf75a5f88ccbc16c2f627d2a3be32e25383d69c 100644 (file)
@@ -74,7 +74,7 @@ http://%HOSTIP:%HTTPPORT/565
 <verify>
 <protocol>
 POST /565 HTTP/1.1\r
-Host: 127.0.0.1:8990\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 Transfer-Encoding: chunked\r
 Content-Type: application/x-www-form-urlencoded\r
@@ -84,7 +84,7 @@ Content-Type: application/x-www-form-urlencoded
 \r
 POST /565 HTTP/1.1\r
 Authorization: Digest username="foo", realm="testrealm", nonce="1053604144", uri="/565", response="877424f750af047634dbd94f9933217b"\r
-Host: 127.0.0.1:8990\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 Transfer-Encoding: chunked\r
 Content-Type: application/x-www-form-urlencoded\r