Re: [PATCH] percent-encoding for libfetch

From: Ed Maste <emaste_at_freebsd.org>
Date: Mon, 9 Apr 2012 19:26:35 -0400
On Mon, Apr 09, 2012 at 03:24:30PM -0700, Julian Elischer wrote:

> could you not parse the _at_ differently depending upon where it is?
> 
> others must have covered this problem..

Indeed others have - none other than T. Berners-Lee, in RFC 1738 where
the format of a URL is specified:

  In addition, octets may be encoded by a character triplet consisting
  of the character "%" followed by the two hexadecimal digits (from
  "0123456789ABCDEF") which forming the hexadecimal value of the octet.
  (The characters "abcdef" may also be used in hexadecimal encodings.)

  ...

  The user name (and password), if present, are followed by a
  commercial at-sign "_at_". Within the user and password field, any ":",
  "_at_", or "/" must be encoded.

-Ed
Received on Mon Apr 09 2012 - 21:26:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC