What's the difference between using http header to pass values and directly passing values with parameters?

http://open.weibo.com/wiki/%E.

there are two ways to call the API interface using OAuth2.0:

1, directly use the parameter, and pass the parameter name as access_token

URL 1
https://api.weibo.com/2/statu.
2, passed in header, in the form of adding Authorization:OAuth2 space abcd, in header, where abcd is assumed to be the value of Access
Token, and other API parameters can be passed normally.

see the introduction of Weibo"s API interface and see this.
what are the advantages and disadvantages of each of the two designs?

Apr.07,2021

the usual constant is usually header, because it is clearer to separate each request with header,.

Menu