docs: use valid example domain names

Replace .site domains and domain.com with valid example domains.

Fixes #16269
Closes #16270
This commit is contained in:
Terence Eden 2025-02-08 22:20:30 +00:00 committed by Daniel Stenberg
parent 116950a250
commit a042c67df3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2
6 changed files with 7 additions and 7 deletions

View File

@ -582,7 +582,7 @@ Example, set default time out and proxy in a config file:
# We want a 30 minute timeout: # We want a 30 minute timeout:
-m 1800 -m 1800
# ... and we use a proxy for all accesses: # ... 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 Whitespaces ARE significant at the end of lines, but all whitespace leading
up to the first characters of each line are ignored. up to the first characters of each line are ignored.

View File

@ -30,9 +30,9 @@ On Windows two filenames in the home directory are checked: *.netrc* and
only. only.
A quick and simple example of how to setup a *.netrc* to allow curl to FTP to 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: look similar to:
machine host.domain.com machine host.example.com
login myself login myself
password secret password secret

View File

@ -82,7 +82,7 @@ int main(void)
curl = curl_easy_init(); curl = curl_easy_init();
if(curl) { if(curl) {
/* what call to write: */ /* 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); curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile);
#ifdef _MSC_VER #ifdef _MSC_VER

View File

@ -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: preferred URL to transfer with CURLOPT_URL(3) in a manner similar to:
~~~c ~~~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 Let's assume for a while that you want to receive data as the URL identifies a

View File

@ -879,7 +879,7 @@ parse_netscape(struct Cookie *co,
/* /*
* flag: A TRUE/FALSE value indicating if all machines within a given * flag: A TRUE/FALSE value indicating if all machines within a given
* domain can access the variable. Set TRUE when the cookie says * 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); co->tailmatch = !!strncasecompare(ptr, "TRUE", len);
break; break;

View File

@ -395,7 +395,7 @@ static CURLUcode parse_hostname_login(struct Curl_URL *u,
/* We will now try to extract the /* We will now try to extract the
* possible login information in a string like: * possible login information in a string like:
* ftp://user:password@ftp.my.site:8021/README */ * ftp://user:password@ftp.site.example:8021/README */
ptr++; ptr++;
/* if this is a known scheme, get some details */ /* if this is a known scheme, get some details */