[Docs] [txt|pdf] [Tracker] [Email] [Nits]

Versions: 00 01

INTERNET-DRAFT                                            M. Yevstifeyev
Intended Status: Informational                            April 15, 2011
Expires: October 17, 2011

                      The 'view-source' URI Scheme
                 <draft-yevstifeyev-view-source-uri-00>

Abstract

   This document specifies the 'view-source' Uniform Resource Identifier
   (URI) scheme.  The 'view-source' URIs have long been used by web-
   browsers to refer to the source code of resource identified by it
   having mostly semi-formal specifications and no official record at
   the IETF.  This document is to remove this uncertainty; it gives the
   formal definition of 'view-source' URI scheme and registers it in the
   corresponding IANA registry.


Status of this Memo

   This Internet-Draft is submitted to IETF in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF), its areas, and its working groups.  Note that
   other groups may also distribute working documents as
   Internet-Drafts.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   The list of current Internet-Drafts can be accessed at
   http://www.ietf.org/1id-abstracts.html

   The list of Internet-Draft Shadow Directories can be accessed at
   http://www.ietf.org/shadow.html


Copyright and License Notice

   Copyright (c) 2011 IETF Trust and the persons identified as the
   document authors. All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of



Yevstifeyev             Expires October 17, 2011                [Page 1]


INTERNET DRAFT          'view-source' URI Scheme          April 15, 2011


   publication of this document. Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document. Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.


Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . . . 2
      1.1.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . 2
   2.  URI Scheme Registration Template  . . . . . . . . . . . . . . . 2
   3.  Security Considerations . . . . . . . . . . . . . . . . . . . . 4
   4.  IANA Considerations . . . . . . . . . . . . . . . . . . . . . . 4
   5.  References  . . . . . . . . . . . . . . . . . . . . . . . . . . 4
      5.1.  Normative References . . . . . . . . . . . . . . . . . . . 4
      5.2.  Informative References . . . . . . . . . . . . . . . . . . 4
   Author's Addresses  . . . . . . . . . . . . . . . . . . . . . . . . 5


1.  Introduction

   This document specifies the 'view-source' Uniform Resource Identifier
   (URI) scheme.  The 'view-source' URIs have long been used by web-
   browsers to refer to the source code of resource identified by it
   having mostly semi-formal specifications (such as the record at
   Microsoft Developer Network [MSDN-VIEW-SOURCE]) and no official
   record at the IETF.  This document is to remove this uncertainty; it
   gives the formal definition of 'view-source' URI scheme and registers
   it in the corresponding IANA registry.

   Generic URI syntax is defined in RFC 3986 [RFC3986]; registration
   procedures for new URI schemes are described in RFC 4395 [RFC4395].

1.1.  Terminology

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in RFC 2119 [RFC2119].


2.  URI Scheme Registration Template

   This section contains the registration template for 'view-source' URI
   scheme, as required by RFC 4395 [RFC4395].

   o URI Scheme Name:  The name of registered URI scheme is



Yevstifeyev             Expires October 17, 2011                [Page 2]


INTERNET DRAFT          'view-source' URI Scheme          April 15, 2011


     "view-source".

   o Status:  Provisional

   o URI Scheme Syntax:  The 'view-source' URI SHALL take the form of
     the <view-source-uri> rule below, defined in ABNF [RFC5234]:

     view-source-uri = "view-source:" absolute-URI

     where the <absolute-URI> rule is defined in Appendix A of RFC 3986
     [RFC3986].

   o URI Scheme Semantics:  The application resolving the 'view-source'
     URI SHALL return the source code of the resource, identified by its
     <absolute-URI> part.  Each application implementing it is permitted
     to choose how the source code is displayed.  However this document
     recommends that it SHOULD be represented in the media type
     "text/plain" [RFC2046] and the character encoding "UTF-8"
     [RFC3629].

     Per RFC 4395, not all URI schemes are used to identify resources.
     Therefore if the 'view-source' URI refers to such URI (e. g.
     "view-source:telnet://exmaple.com/" with a 'telnet' URI [RFC4248]
     in the <absolute-URI> part), the application that resolves it SHALL
     return the resource of zero length, containing no data, with the
     media type "text/plain" [RFC2046] and the character encoding
     "UTF-8" [RFC3629].

   o Encoding Considerations:  There are no other encoding
     considerations for 'view-source' URI scheme not discussed in RFC
     3986 [RFC3986].

   o Applications and Protocols that Use this URI Scheme Name:  The
     'view-source' URIs is generally used by web-browsers.  However this
     document does not place the limit on where else they can be used.

     See Wikipedia's entry on "View-source URI scheme"
     [WIKI-VIEW-SOURCE] for the up-to-date list of browser support
     information.

   o Interoperability Considerations:  The 'view-source' URI may
     sometimes refer to the source code that is under certain legal
     provisions, according to which an individual or a company may not
     have granted the free access or other actions with regard to the
     source code returned after resolving such URI.

   o Security Considerations:  Security considerations for 'view-source'
     URIs are discussed in Section 3 of this document.



Yevstifeyev             Expires October 17, 2011                [Page 3]


INTERNET DRAFT          'view-source' URI Scheme          April 15, 2011


   o Contact:  Mykyta Yevstifeyev <evnikita2@gmail.com>

   o Author/Change Controller:  IESG <iesg@ietf.org>

   o References:  See Section 5 of this document.


3.  Security Considerations

   Generic security considerations for URIs are discussed in Section 7
   of RFC 3986 [RFC3986].

   The 'view-source' URIs may sometimes reveal the information (source
   code) that is a governmental, trade or other type of secret and,
   therefore, disclose confidential information.


4.  IANA Considerations

   IANA is asked to register the 'view-source' URI scheme using the
   template of Section 2.


5.  References

5.1.  Normative References

   [RFC2046]  Freed, N. and N. Borenstein, "Multipurpose Internet Mail
              Extensions (MIME) Part Two: Media Types", RFC 2046,
              November 1996.

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119, March 1997.

   [RFC3629]  Yergeau, F., "UTF-8, a transformation format of ISO
              10646", STD 63, RFC 3629, November 2003.

   [RFC3986]  Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform
              Resource Identifier (URI): Generic Syntax", STD 66,
              RFC 3986, January 2005.

   [RFC5234]  Crocker, D., Ed., and P. Overell, "Augmented BNF for
              Syntax Specifications: ABNF", STD 68, RFC 5234, January
              2008.


5.2.  Informative References




Yevstifeyev             Expires October 17, 2011                [Page 4]


INTERNET DRAFT          'view-source' URI Scheme          April 15, 2011


   [MSDN-VIEW-SOURCE]
              Microsoft Corporation, "view-source Protocol," Microsoft
              Developer Network (MSDN).
              <http://msdn.microsoft.com/en-us/library/aa767742.aspx>

   [RFC4248]  Hoffman, P., "The telnet URI Scheme", RFC 4248, October
              2005.

   [RFC4395]  Hansen, T., Hardie, T., and L. Masinter, "Guidelines and
              Registration Procedures for New URI Schemes", BCP 35,
              RFC 4395, February 2006.

   [WIKI-VIEW-SOURCE]
              Wikipedia Contributors, "View-source URI scheme,"
              Wikipedia, The Free Encyclopedia, March 2011.
              <http://en.wikipedia.org/wiki/View-source_URI_scheme>


Author's Addresses

   Mykyta Yevstifeyev
   8 Kuzovkov St., flat 25
   Kotovsk
   Ukraine

   EMail: evnikita2@gmail.com

























Yevstifeyev             Expires October 17, 2011                [Page 5]


Html markup produced by rfcmarkup 1.129d, available from https://tools.ietf.org/tools/rfcmarkup/