Issue Feature New Orphaned

#101935Better handling of curl error codes in linkvalidator

Sybille Peters 09/17/23, 14:38 updated 09/17/23, 15:01

Description

Unfortunately, one curl error codes may be used for several different problems, e.g.

1. Certificate does not have matching target host name
2. Missing intermediate certificate – incomplete certificate chain

The text which is displayed by command line curl / or using Guzzle with libcurl does contain a different text in this case, but the error code is still the same (60 for the examples above).

A number of error codes were localized and the internal linkvalidator text is displayed, not the full error message supplied by curl.

Solution

(preliminary ideas)

  • We should find a way to make this configurable, so that the full curl error message will be displayed
  • show both (e.g. show shorter, localized message by default and show full message as detail view

Info

Examples

curl -LI "https://www.rea.ru"
curl: (60) SSL certificate problem: unable to get local issuer certificate
curl -I https://t3coredev13
curl: (60) SSL: no alternative certificate subject name matches target host name 't3coredev13'

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[FEATURE] Better handling of curl error codes in linkvalidator Resolves: #101935 Releases: main