Dale R. Worley wrote:
L A Walsh <w...@tlinx.org> 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! :-)









Reply via email to