Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
23550fe5
Commit
23550fe5
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
Dan Fandrich's fix to use 127.0.0.1 instead of localhost to not depend on
it resolving nicely
parent
8420de97
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/data/test503
+1
-1
1 addition, 1 deletion
tests/data/test503
tests/data/test504
+1
-1
1 addition, 1 deletion
tests/data/test504
tests/data/test509
+2
-2
2 additions, 2 deletions
tests/data/test509
tests/libtest/lib509.c
+1
-1
1 addition, 1 deletion
tests/libtest/lib509.c
with
5 additions
and
5 deletions
tests/data/test503
+
1
−
1
View file @
23550fe5
...
...
@@ -34,7 +34,7 @@ lib503
simple multi http:// through proxytunnel with authentication info
</name>
<command>
http://%HOSTIP:%HTTPSPORT/503
localhost
:%HTTPPORT
http://%HOSTIP:%HTTPSPORT/503
127.0.0.1
:%HTTPPORT
</command>
<file name="log/test503.txt">
foo
...
...
This diff is collapsed.
Click to expand it.
tests/data/test504
+
1
−
1
View file @
23550fe5
...
...
@@ -16,7 +16,7 @@ lib504
simple multi through local proxy without listener
</name>
<command>
http://%HOSTIP:%HTTPSPORT/504
localhost
:55555
http://%HOSTIP:%HTTPSPORT/504
127.0.0.1
:55555
</command>
</client>
...
...
This diff is collapsed.
Click to expand it.
tests/data/test509
+
2
−
2
View file @
23550fe5
...
...
@@ -30,7 +30,7 @@ lib509
simple HTTPS GET and URL redirect in certificate
</name>
<command>
https://
localhost
:%HTTPSPORT/dvcs %HTTPSPORT
https://
127.0.0.1
:%HTTPSPORT/dvcs %HTTPSPORT
</command>
</client>
...
...
@@ -42,7 +42,7 @@ https://localhost:%HTTPSPORT/dvcs %HTTPSPORT
</strip>
<protocol>
GET /509 HTTP/1.1
Host:
localhost
:%HTTPSPORT
Host:
127.0.0.1
:%HTTPSPORT
Pragma: no-cache
Accept: */*
...
...
This diff is collapsed.
Click to expand it.
tests/libtest/lib509.c
+
1
−
1
View file @
23550fe5
...
...
@@ -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 that uses the currently requested port number which may not
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
);
curl_easy_setopt
(
p
->
curl
,
CURLOPT_URL
,
newurl
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment