Re: Semicolon not allowed in userinfo
Tim Rühsen <[email protected]> Sat, 1 Jun 2024 18:42:29 +0200
| Newsgroups | gmane.comp.web.wget.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Bachir, wget2 "a;bc@xyz" wget2: Failed to resolve 'xyz' (Name or service not known) Is there a real-life problem that requires wget 1.x to accept a semicolon in the userinfo field? Regards, Tim On 5/14/24 12:42, Bachir Bendrissou wrote: > Hi, > > The URL example below contains a semicolon in the userinfo segment. > > In the example, wget does not recognise the userinfo segment, and > instead treats it as part of the hostname. When the semicolon is > removed, the userinfo is recognised and is no longer processed as > hostname. The rejection of semicolons in userinfo creates a parsing > discrepancy with other URL parsers. > > curl "a;bc@xyz" > curl: (6) Could not resolve host: xyz > > wget "a;bc@xyz" > wget: unable to resolve host address ‘a;bc@xyz’ > > wget "abc@xyz" > wget: unable to resolve host address ‘xyz’ > > You can replicate the above cases after disconnecting from your DNS. > > Thank you, > Bachir >
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEHLJ9vJhhSy1YQWRtCDAttqJnBCgFAmZbT3UFAwAAAAAACgkQCDAttqJnBChP LhAApK0CPcZidWPiZ18je9knDhVTkLhNMOX24RcW+pQWVYdaV2IzhWNCeT9l0Wlh+PphAX5f7OpT 1Euht9HePwh0+8vRehCrF9+t/GEsiFCTNZThkbM6vb05yAWX6/9uHqKHOfkR9E1reb9Cjtrse+Ls jyUVU3APXRU3ijAJJvGYyjH9mv4m41PvKbIpHVjworKUMm/++Gsl8ns06v861GyX0by5zRPD0SUD ijjh2iRrQMQd15/pMe5Lrkac1ihL4bWX5vTu/sF6dQp/xNAtSu02wZrXyAKv/WX5uA8bYavyCHPt 2nWswIFwMZEF/K0HLg0hdkt7jJDw7yuIB4PlhSVtMDo9lf9wjt9T3TsaUkdfPHEvoBJwE9p51o0T cITXaolSVNnvEgL+/C2ylEtKcVf11i2/xEdrOzNsSfY8x8+aJU93dXmwGsIBFYC9NIDYoo01/BxM 9Y3jl8gBXJiCTrTO9ce4wOWq8hay1QoU/g6iYnNzjrcTbgBhqjbZYDmkhWJA02OCMrKNV82Fn2Fm tFRzwRAGzoezmczEnu3wf1nd4xNI0fDt/UMQJXZSdssV95QNDodj6laFfjDZxxYAVeKYj06g0Sre OECrz7t5hkRqNDvqU8r2WlUgi9IKi1cW1G/bDgXsh7kvLCgCA5v1NiHIKdenL8FWlnC5Sgg0iFiB IPw= =xuPh -----END PGP SIGNATURE-----