]> granicus.if.org Git - curl/commitdiff
tests: update fixed IP for hostip/clientip split
authorStephan Szabo <stephan.szabo@sony.com>
Mon, 24 Jun 2019 16:25:31 +0000 (09:25 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 25 Jun 2019 06:04:48 +0000 (08:04 +0200)
These tests give differences for me on linux when using a hostip
pointing to the external ip address for the local machine.

Closes #4070

tests/data/test1519
tests/data/test2032
tests/data/test651
tests/data/test653

index ab23dadca70128f1a90ec94a3246f55b9114e329..292a49c65923d225ad30935127a951a0c2c2581b 100644 (file)
@@ -53,7 +53,7 @@ res: 0
 status: 302
 redirects: 0
 effectiveurl: http://%HOSTIP:%HTTPPORT/1519
-redirecturl: http://127.0.0.1:8990/h%20ttp://1.2.4.5/test
+redirecturl: http://%HOSTIP:%HTTPPORT/h%20ttp://1.2.4.5/test
 </stdout>
 <errorcode>
 0
index a63e11ef1edad74e724d84981ccb299d2cdd11d9..ec5771f8141b48c24b4c50e08ac08b7d3607bb8e 100644 (file)
@@ -99,22 +99,22 @@ chkhostname curlhost
 </strip>
 <protocol>
 GET /20320100 HTTP/1.1\r
-Host: 127.0.0.1:%HTTPPORT\r
+Host: %HOSTIP:%HTTPPORT\r
 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=\r
 Accept: */*\r
 \r
 GET /20320100 HTTP/1.1\r
-Host: 127.0.0.1:%HTTPPORT\r
+Host: %HOSTIP:%HTTPPORT\r
 Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=\r
 Accept: */*\r
 \r
 GET /20320200 HTTP/1.1\r
-Host: 127.0.0.1:%HTTPPORT\r
+Host: %HOSTIP:%HTTPPORT\r
 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=\r
 Accept: */*\r
 \r
 GET /20320200 HTTP/1.1\r
-Host: 127.0.0.1:%HTTPPORT\r
+Host: %HOSTIP:%HTTPPORT\r
 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyY3VybGhvc3Q=\r
 Accept: */*\r
 \r
index b00ca5d0e8815c9132c5b2f004d363a434110b8d..ae6409479ff95ea419efb63308e279d9400eadb1 100644 (file)
@@ -57,7 +57,7 @@ s/boundary=------------------------[a-z0-9]*/boundary=--------------------------
 # (5*12) == 60 bytes less
 <protocol>
 POST /651 HTTP/1.1\r
-Host: 127.0.0.1:8990\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 Content-Length: 17139\r
 Content-Type: multipart/form-data; boundary=----------------------------\r
index d620b57616be09efce80bfdbb2ceabba17a0babc..d7be05923e933512ee4910f305bb67a82e360add 100644 (file)
@@ -67,7 +67,7 @@ s/boundary=------------------------[a-z0-9]*/boundary=--------------------------
 # (5*12) == 60 bytes less
 <protocol>
 POST /653 HTTP/1.1\r
-Host: 127.0.0.1:8990\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 Content-Length: 150\r
 Content-Type: multipart/form-data; boundary=----------------------------\r
@@ -78,7 +78,7 @@ Content-Disposition: form-data; name="name"
 short value\r
 --------------------------------\r
 POST /653 HTTP/1.1\r
-Host: 127.0.0.1:8990\r
+Host: %HOSTIP:%HTTPPORT\r
 Accept: */*\r
 Content-Length: 167\r
 Content-Type: multipart/form-data; boundary=----------------------------\r