Scheme in http and scheme in applet

1. The scheme in http

The scheme is the part that identifies the protocol in the url, which may be http or ftp.
insert image description here
insert image description here
/ marks the beginning of the path.
;marks the start of the parameter, for example:

ftp://prep.ai.mit.edu/pub/gnu; type=d

? Identifies the start of a query, for example:

http://www.joes-hardware.com/inventory-check.cgi?item=12731&color=blue

Question: ; and ? Both can pass key-value pairs, what's the difference?

The semicolon identifies the parameters of the path itself, while the question mark is the query parameter.
In practice, there are question marks.

The path component of an HTTP URL can be broken into several path segments. Each segment can have its own parameters. For example: http://www.joes-hardware.com/hammers; sale=false/index.html;graphics=true This example has two path segments, hammers and index.html. The hammers path segment has a parameter sale whose value is false. The index.html segment has a parameter graphics whose value is true.

2. The scheme in the applet

WeChat applet

The function of the WeChat applet scheme is to jump into the applet, and the generation of the scheme requires a special interface.

Alipay applet

insert image description here
insert image description here
The scheme of the applet is a parameter in the redirect url. This parameter needs to be filled with appId, page, query parameters, etc.

Guess you like

Origin blog.csdn.net/ustc_sse_shenzhang/article/details/127379214