1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

use variables to support other IPs and port numbers

This commit is contained in:
Daniel Stenberg 2008-05-01 10:52:12 +00:00
parent 7b2531da24
commit fd31f7e7e5

View File

@ -30,10 +30,6 @@ HTTP Location: and 'redirect_url' check
<command>
http://%HOSTIP:%HTTPPORT/we/want/our/1029 -w '%{redirect_url}\n'
</command>
# The stdout section doesn't do variable substitution, so we must assert this
<precheck>
perl -e "print 'Test requires default test server host and port' if ( '%HOSTIP' ne '127.0.0.1' || '%HTTPPORT' ne '8990' );"
</precheck>
</client>
# Verify data after the test has been "shot"
@ -54,7 +50,7 @@ Content-Length: 62
Connection: close
This server reply is for testing a simple Location: following
http://127.0.0.1:8990/we/want/our/data/10290002.txt?coolsite=yes
http://%HOSTIP:%HTTPPORT/we/want/our/data/10290002.txt?coolsite=yes
</stdout>
</verify>
</testcase>