|
From: | L A Walsh |
Subject: | Re: [Bug-wget] Shouldn't wget strip leading spaces from a URL? |
Date: | Mon, 05 Jun 2017 20:31:25 -0700 |
User-agent: | Thunderbird |
Dale R. Worley wrote:
L A Walsh <address@hidden> writes:if wget gets leading spaces in a URL, it complains:" http://www.kernel.org/pub/linux/utils/util-linux/v2.30: Scheme missing."Isn't it required for a web client to strip leading spaces from URLs?Strictly speaking, no,
--- You might want to read this web requirements doc: https://www.w3.org/TR/2014/REC-html5-20141028/infrastructure.html#strip-leading-and-trailing-whitespace Especially this sentence: When a user agent is to strip leading and trailing whitespace from a string, the user agent must remove all space characters that are at the start or end of the string. As part of URL parsing, a user-agent(like wget) is required to strip leading and trailing whitespace. Go ahead, make me cite references... Nyaa! :-)
[Prev in Thread] | Current Thread | [Next in Thread] |