URL question

Bob Gorman bob at rsi.com
Fri Jul 2 20:08:01 EDT 2004


At 06:09 PM 7/2/2004, Eric wrote:
>Hi.  What are the guidelines for writing a URL? 

See: http://www.faqs.org/rfcs/rfc1738.html

For a HTTP URL:

3.3. HTTP

   The HTTP URL scheme is used to designate Internet resources
   accessible using HTTP (HyperText Transfer Protocol).

   The HTTP protocol is specified elsewhere. This specification only
   describes the syntax of HTTP URLs.

   An HTTP URL takes the form:

      http://<host>:<port>/<path>?<searchpart>

   where <host> and <port> are as described in Section 3.1. If :<port>
   is omitted, the port defaults to 80.  No user name or password is
   allowed.  <path> is an HTTP selector, and <searchpart> is a query
   string. The <path> is optional, as is the <searchpart> and its
   preceding "?". If neither <path> nor <searchpart> is present, the "/"
   may also be omitted.

   Within the <path> and <searchpart> components, "/", ";", "?" are
   reserved.  The "/" character may be used within HTTP to designate a
   hierarchical structure.

-- 

I deliver custom Linux business applications in the Boston area.
mailto:bob(at)rsi.com, http://www.rsi.com/, 617.965.1700




More information about the Discuss mailing list