mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:17:28 +03:00
tidy-up: URLs (cont.) and mdlinkcheck
- add missing ending slashes.
To avoid duplicates and to use canonical URLs.
- reapply lost updates.
Follow-up to 2ae983bf4e #19879
- mdlinkcheck: include the `include` directory.
- mdlinkcheck: show unused whitelist items.
- mdlinkcheck: improve debug output.
- mdlinkcheck: delete redundant whitelist items.
- examples/simplessl: lowercase the protocol part.
- BINDINGS: replace one remaining HTTP URL with HTTPS.
Issue: https://github.com/pycurl/pycurl/issues/892
- BINDINGS: fix a broken link.
- BINDINGS: follow a refresh content redirect.
- KNOWN_BUGS: whitespace.
Closes #19911
This commit is contained in:
parent
00f06127ce
commit
d9d2e339ce
16 changed files with 98 additions and 91 deletions
|
|
@ -31,53 +31,53 @@
|
|||
#include <curl/curl.h>
|
||||
|
||||
static const char *urls[] = {
|
||||
"https://www.microsoft.com",
|
||||
"https://opensource.org",
|
||||
"https://www.google.com",
|
||||
"https://www.yahoo.com",
|
||||
"https://www.ibm.com",
|
||||
"https://www.mysql.com",
|
||||
"https://www.oracle.com",
|
||||
"https://www.ripe.net",
|
||||
"https://www.iana.org",
|
||||
"https://www.amazon.com",
|
||||
"https://www.netcraft.com",
|
||||
"https://www.heise.de",
|
||||
"https://www.chip.de",
|
||||
"https://www.ca.com",
|
||||
"https://www.cnet.com",
|
||||
"https://www.mozilla.org",
|
||||
"https://www.cnn.com",
|
||||
"https://www.wikipedia.org",
|
||||
"https://www.dell.com",
|
||||
"https://www.hp.com",
|
||||
"https://www.cert.org",
|
||||
"https://www.mit.edu",
|
||||
"https://www.nist.gov",
|
||||
"https://www.ebay.com",
|
||||
"https://www.playstation.com",
|
||||
"https://www.uefa.com",
|
||||
"https://www.ieee.org",
|
||||
"https://www.apple.com",
|
||||
"https://www.symantec.com",
|
||||
"https://www.zdnet.com",
|
||||
"https://www.microsoft.com/",
|
||||
"https://opensource.org/",
|
||||
"https://www.google.com/",
|
||||
"https://www.yahoo.com/",
|
||||
"https://www.ibm.com/",
|
||||
"https://www.mysql.com/",
|
||||
"https://www.oracle.com/",
|
||||
"https://www.ripe.net/",
|
||||
"https://www.iana.org/",
|
||||
"https://www.amazon.com/",
|
||||
"https://www.netcraft.com/",
|
||||
"https://www.heise.de/",
|
||||
"https://www.chip.de/",
|
||||
"https://www.ca.com/",
|
||||
"https://www.cnet.com/",
|
||||
"https://www.mozilla.org/",
|
||||
"https://www.cnn.com/",
|
||||
"https://www.wikipedia.org/",
|
||||
"https://www.dell.com/",
|
||||
"https://www.hp.com/",
|
||||
"https://www.cert.org/",
|
||||
"https://www.mit.edu/",
|
||||
"https://www.nist.gov/",
|
||||
"https://www.ebay.com/",
|
||||
"https://www.playstation.com/",
|
||||
"https://www.uefa.com/",
|
||||
"https://www.ieee.org/",
|
||||
"https://www.apple.com/",
|
||||
"https://www.symantec.com/",
|
||||
"https://www.zdnet.com/",
|
||||
"https://www.fujitsu.com/global/",
|
||||
"https://www.supermicro.com",
|
||||
"https://www.hotmail.com",
|
||||
"https://www.ietf.org",
|
||||
"https://www.bbc.co.uk",
|
||||
"https://news.google.com",
|
||||
"https://www.foxnews.com",
|
||||
"https://www.msn.com",
|
||||
"https://www.wired.com",
|
||||
"https://www.sky.com",
|
||||
"https://www.usatoday.com",
|
||||
"https://www.cbs.com",
|
||||
"https://www.supermicro.com/",
|
||||
"https://www.hotmail.com/",
|
||||
"https://www.ietf.org/",
|
||||
"https://www.bbc.co.uk/",
|
||||
"https://news.google.com/",
|
||||
"https://www.foxnews.com/",
|
||||
"https://www.msn.com/",
|
||||
"https://www.wired.com/",
|
||||
"https://www.sky.com/",
|
||||
"https://www.usatoday.com/",
|
||||
"https://www.cbs.com/",
|
||||
"https://www.nbc.com/",
|
||||
"https://slashdot.org",
|
||||
"https://www.informationweek.com",
|
||||
"https://apache.org",
|
||||
"https://www.un.org",
|
||||
"https://slashdot.org/",
|
||||
"https://www.informationweek.com/",
|
||||
"https://apache.org/",
|
||||
"https://www.un.org/",
|
||||
};
|
||||
|
||||
#define MAX_PARALLEL 10 /* number of simultaneous transfers */
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ static int max_total = 20000;
|
|||
static int max_requests = 500;
|
||||
static size_t max_link_per_page = 5;
|
||||
static int follow_relative_links = 0;
|
||||
static const char *start_page = "https://www.reuters.com";
|
||||
static const char *start_page = "https://www.reuters.com/";
|
||||
|
||||
static int pending_interrupt = 0;
|
||||
static void sighandler(int dummy)
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ int main(void)
|
|||
curl = curl_easy_init();
|
||||
if(curl) {
|
||||
const char *urls[] = {
|
||||
"https://example.com",
|
||||
"https://curl.se",
|
||||
"https://example.com/",
|
||||
"https://curl.se/",
|
||||
"https://www.example/",
|
||||
NULL /* end of list */
|
||||
};
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ int main(void)
|
|||
goto error;
|
||||
|
||||
/* what call to write: */
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "HTTPS://secure.site.example");
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://secure.site.example/");
|
||||
curl_easy_setopt(curl, CURLOPT_HEADERDATA, headerfile);
|
||||
|
||||
#ifdef USE_ENGINE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue