HTTP protocol basics and the concept of Web application

Source: Internet
Author: User

One, HTTP protocol base HTTP (hypertext Transfer Protocol, Hypertext Transfer Protocol) HTTP is a transport protocol that sends data in clear text to transmit hypertext from a WWW server to a local browser.  The HTTP protocol is a high-level protocol based on TCP/IP. Now widely used version http/1.1 get/latest.html http/1.1
Host:www.foo.com
Content-type:text/html
...
{Blank line}
Post/servlet/serv http/1.1
Host:www.foo.com
content-type:application/x-www-form-urlencoded
Content-length:32
Username=billgates&password=hehe
http/1.1200 OK
Date:fri,31 DEC 2003 10:23:34 GMT
Content-type:text/html
content-length:280


......
  • Web-inf
    • Xml
      • The Web app's configuration file
    • Lib
      • The library file used by the Web App
    • Classes
      • Store the compiled servlet
  • Meta-inf
    • Contextual information to store the Web app, in line with the Java EE standard
2.WEB application can be placed directly under the WebApp, can also be specified through the configuration file to other directories
  • <context path= "/virtual path name" docbase= "directory Location" debug= "0" reloadable= "true"/>

HTTP protocol basics and the concept of Web application

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.