HTTP headers | From

The HTTP From header is request type header it indicates an e-mail address that is sent to the client through a robotic agent. The agent will be a crawler or a user robotic agent which is run by the main user. The header field contains an Internet e-mail address for a user or a client who is requesting a user agent. The main advantage is that if the robotic agent sends an unwanted request to the client, then the main user can be contacted. The From header filed can have many purposes like logging and also as an investigator to know about the origin of excessive requests. The e-mail address used in From header should be different from Host header due to security purposes. 

Syntax: 

From: <email>

Directives: This header accept a single directive as mentioned above and descrived below

  • <email>: This directive represents a machine-usable email address.

Note: Prefer to not use it for Authentication or validation process Examples: 

Example:

From: careers@geeksforgeeks.org
From: no-reply-contribute@geeksforgeeks.org

Supported Browsers: The browsers supported by  HTTP Form Header are listed below: 

  • Google Chrome
  • Firefox
  • Internet Explorer
  • Opera
  • Safari
My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.