HTTP protocol detailed (URL explanation)

Source: Internet
Author: User

The URL (uniform Resource Locator) address is used to describe a resource on a network, and the basic format is as follows schema://host[:p ort#]/path/.../[;url-params][?query-string][# Anchor

scheme specifies protocols for low-level use (for example: HTTP, HTTPS, FTP)

The IP address or domain name of the host HTTP server

The default port for the port# HTTP server is 80, which can be omitted from the lower number. If you use a different port, you must indicate, for example, http://www.cnblogs.com:8080/

Path to access resources

Url-params

Query-string data sent to HTTP server

anchor-Anchor

An example of a URL Http://www.mywebsite.com/sj/test;id=8079?name=sviergn&x=true#stuff

Schema:http

Host:www.mywebsite.com

Path:/sj/test

URL params:id=8079

Query String:name=sviergn&x=true

Anchor:stuff


HTTP indicates that a network resource is to be located through the HTTP protocol; Host represents a legitimate Internet host domain name or IP address; port specifies a port number, NULL, and the default port 80;abs_path specifies the URI of the requested resource; If Abs_ is not given in the URL Path, then when it is the request URI, it must be given in the form of "/", which is usually done automatically by the working browser.
eg
1. Input: www.guet.edu.cn
Browser automatically converted to: http://www.guet.edu.cn/
2, http:192.168.0.116:8080/index.jsp

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.