From: Terence Eden Date: Sat, 8 Feb 2025 22:20:30 +0000 (+0000) Subject: docs: use valid example domain names X-Git-Tag: curl-8_12_1~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a042c67df3845b55817ee03635e558768868aad4;p=thirdparty%2Fcurl.git docs: use valid example domain names Replace .site domains and domain.com with valid example domains. Fixes #16269 Closes #16270 --- diff --git a/docs/MANUAL.md b/docs/MANUAL.md index 9e4ad58452..9ff5c097c7 100644 --- a/docs/MANUAL.md +++ b/docs/MANUAL.md @@ -582,7 +582,7 @@ Example, set default time out and proxy in a config file: # We want a 30 minute timeout: -m 1800 # ... and we use a proxy for all accesses: - proxy = proxy.our.domain.com:8080 + proxy = proxy.our.domain.example.com:8080 Whitespaces ARE significant at the end of lines, but all whitespace leading up to the first characters of each line are ignored. diff --git a/docs/cmdline-opts/netrc.md b/docs/cmdline-opts/netrc.md index 2b03e2e719..3e9fcb1963 100644 --- a/docs/cmdline-opts/netrc.md +++ b/docs/cmdline-opts/netrc.md @@ -30,9 +30,9 @@ On Windows two filenames in the home directory are checked: *.netrc* and only. A quick and simple example of how to setup a *.netrc* to allow curl to FTP to -the machine host.domain.com with username 'myself' and password 'secret' could +the machine host.example.com with username 'myself' and password 'secret' could look similar to: - machine host.domain.com + machine host.example.com login myself password secret diff --git a/docs/examples/simplessl.c b/docs/examples/simplessl.c index 7ab0d8a667..f9c0a78d60 100644 --- a/docs/examples/simplessl.c +++ b/docs/examples/simplessl.c @@ -82,7 +82,7 @@ int main(void) curl = curl_easy_init(); if(curl) { /* what call to write: */ - curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://your.favourite.ssl.site"); + curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://secure.site.example"); curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile); #ifdef _MSC_VER diff --git a/docs/libcurl/libcurl-tutorial.md b/docs/libcurl/libcurl-tutorial.md index 7c59e2f88c..8c8c483d16 100644 --- a/docs/libcurl/libcurl-tutorial.md +++ b/docs/libcurl/libcurl-tutorial.md @@ -194,7 +194,7 @@ One of the most basic properties to set in the handle is the URL. You set your preferred URL to transfer with CURLOPT_URL(3) in a manner similar to: ~~~c - curl_easy_setopt(handle, CURLOPT_URL, "http://domain.com/"); + curl_easy_setopt(handle, CURLOPT_URL, "http://example.com/"); ~~~ Let's assume for a while that you want to receive data as the URL identifies a diff --git a/lib/cookie.c b/lib/cookie.c index 6fe949b56f..9819768454 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -879,7 +879,7 @@ parse_netscape(struct Cookie *co, /* * flag: A TRUE/FALSE value indicating if all machines within a given * domain can access the variable. Set TRUE when the cookie says - * .domain.com and to false when the domain is complete www.domain.com + * .example.com and to false when the domain is complete www.example.com */ co->tailmatch = !!strncasecompare(ptr, "TRUE", len); break; diff --git a/lib/urlapi.c b/lib/urlapi.c index d9b04e3730..2368bd79b5 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -395,7 +395,7 @@ static CURLUcode parse_hostname_login(struct Curl_URL *u, /* We will now try to extract the * possible login information in a string like: - * ftp://user:password@ftp.my.site:8021/README */ + * ftp://user:password@ftp.site.example:8021/README */ ptr++; /* if this is a known scheme, get some details */