Koenraad développement




 
 
       
   Accueil
   Services
     Développement
     Internet
       Sites Web
       Création de sites
   Télécharger
   Documentation
     Internet
     Programmation
   Contact
   Espace client
         
  URL - Uniform Resource Locator (Anglais)
  ISO-8859 Character sets (Anglais + Français)
  METAS HTML document
  Cascading Style Sheets, level 1
  Une infrastructure sécurisée
  E-mails automatiques


  URL encoding  

A URL is a Uniform Resource Locator. Think of it as a networked extension of the standard filename concept: not only can you point to a file in a directory, but that file and that directory can exist on any machine on the network, can be served via any of several different methods, and might not even be something as simple as a file: URLs can also point to queries, documents stored deep within databases, the results of a finger or archie command, or whatever.

When encoding a URL, a character may not be available on the keyboard. Other times, the character of a URL might not be usable in contexts where it may conflict with a reserved character. In either case, the character can be encoded with a % followed by its ASCII hexadecimal equivalent code.

A Uniform Resource Locator (URL) is a name for a resource on the Internet.
A Uniform Resource Locator (URL) has this general syntax:

scheme:[//host.domain[:port][/path][/filename]][newsgroup][email address]
....

 

  Mailto URL  

The mailto URL is extremely useful. Of particular interest is the ability to preformat a message by supplying things like the subject line of the message in the URL. You can specify who should be copied (cc) or blind-copied (bcc), and even fill out the body of a message! There are some things to watch for; for instance, if you don't know about hex encoding, all the blank lines will be missing from your message body.

THE BASICS OF MAILTO URLS

In its simplest form, the mailto URL looks like this:
mailto:name@company.com

The corresponding HTML anchor tag is as shown in this example:
<A HREF="mailto:name@company.com">send email</A>

If you want to specify values for additional properties, such as cc,bcc, and subject, you can add them to the URL as name/value pairs (name=value). Each property name is followed by an equals sign (=) and then the value to appear for that property. The first name/value pair starts with a question mark (?) to separate it from the email address, and subsequent name/value pairs are separated by an ampersand (&). For example, here's a mailto URL with cc and subject values specified (with the separator characters highlighted for readability):
mailto:name@company.com?cc=name02@company02.com&subject=The Readme File

The HTML anchor tag looks like this (with hex-encoded text for the value of the subject property):
<A HREF="mailto:name@company.com?cc=name02@company02.com
&subject=The%20Readme%20File">send email to Name</A>


Clicking send email to Name pops up a mail window with the To, Cc, and Subject lines already filled out.
.....
 

  Uniform Resource Locator syntax  

This is a BNF-like description of the Uniform Resource Locator syntax. A vertical line "|" indicates alternatives, and [brackets] indicate optional parts. Spaces are represented by the word "space", and the vertical line character by "vline". Single letters stand for single letters. All words of more than one letter below are entities described somewhere in this description.

The "national" and "punctuation" characters do not appear in any productions and therefore may not appear in URLs.

The "afsaddress" is left in as historical note, but is not a url production :
....
 
 

 




© Koenraad Développement 2004. Dernière mise à jour le   -  Tél. + 33 (0) 5 61 68 19 41  -  e-mail : ah.koenraad@free.fr