1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Dan Fandrich's fix to use 127.0.0.1 instead of localhost to not depend on

it resolving nicely
This commit is contained in:
Daniel Stenberg 2004-09-22 18:21:45 +00:00
parent 8420de971f
commit 23550fe5de
4 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ lib503
simple multi http:// through proxytunnel with authentication info simple multi http:// through proxytunnel with authentication info
</name> </name>
<command> <command>
http://%HOSTIP:%HTTPSPORT/503 localhost:%HTTPPORT http://%HOSTIP:%HTTPSPORT/503 127.0.0.1:%HTTPPORT
</command> </command>
<file name="log/test503.txt"> <file name="log/test503.txt">
foo foo

View File

@ -16,7 +16,7 @@ lib504
simple multi through local proxy without listener simple multi through local proxy without listener
</name> </name>
<command> <command>
http://%HOSTIP:%HTTPSPORT/504 localhost:55555 http://%HOSTIP:%HTTPSPORT/504 127.0.0.1:55555
</command> </command>
</client> </client>

View File

@ -30,7 +30,7 @@ lib509
simple HTTPS GET and URL redirect in certificate simple HTTPS GET and URL redirect in certificate
</name> </name>
<command> <command>
https://localhost:%HTTPSPORT/dvcs %HTTPSPORT https://127.0.0.1:%HTTPSPORT/dvcs %HTTPSPORT
</command> </command>
</client> </client>
@ -42,7 +42,7 @@ https://localhost:%HTTPSPORT/dvcs %HTTPSPORT
</strip> </strip>
<protocol> <protocol>
GET /509 HTTP/1.1 GET /509 HTTP/1.1
Host: localhost:%HTTPSPORT Host: 127.0.0.1:%HTTPSPORT
Pragma: no-cache Pragma: no-cache
Accept: */* Accept: */*

View File

@ -121,7 +121,7 @@ static int ssl_app_verify_callback(X509_STORE_CTX *ctx, void *arg)
URL in the cert uses a static one. We thus need to create a new URL in the cert uses a static one. We thus need to create a new
URL that uses the currently requested port number which may not URL that uses the currently requested port number which may not
be the one this URL uses! */ be the one this URL uses! */
sprintf(newurl, "https://localhost:%d/509", portnum); sprintf(newurl, "https://127.0.0.1:%d/509", portnum);
fprintf(stderr, "But *really* Setting URL <%s>\n", newurl); fprintf(stderr, "But *really* Setting URL <%s>\n", newurl);
curl_easy_setopt(p->curl, CURLOPT_URL, newurl); curl_easy_setopt(p->curl, CURLOPT_URL, newurl);