Discord OAuth2 redirect URI how-to

You need to have your own webserver with some path to make your redirect url. For example, if you owned example.com, you could have example.com/discord be the url to redirect the client to after they login via Discord.

How are parameters sent in an HTTP POST request?

The values are sent in the request body, in the format that the content type specifies. Usually the content type is application/x-www-form-urlencoded, so the request body uses the same format as the query string: When you use a file upload in the form, you use the multipart/form-data encoding instead, which has a different format. It’s more complicated, but … Read more

Can we use & in url?

Yes, you can use it plain in your URL path like this: Only if you want to use it in the query you need to encode it with %26: Otherwise it would be interpreted as argument separator when interpreted as application/x-www-form-urlencoded. See RFC 3986 for more details.

Can a URL contain a semicolon and still be valid?

A semicolon is reserved and should only for its special purpose (which depends on the scheme). Section 2.2: Many URL schemes reserve certain characters for a special meaning: their appearance in the scheme-specific part of the URL has a designated semantics. If the character corresponding to an octet is reserved in a scheme, the octet must be … Read more

What’s different between URI, request-URI and URL?

The URI standard is STD 66, which currently maps to RFC 3986. URI vs. URL Section 1.1.3 describes the difference between URIs and URLs (and URNs). Components Section 3 describes the components a URI can have. For the URI http://www.example.org:56789/a/b/c.txt?t=win&s=chess#para5 these would be: Scheme: http Authority: www.example.org:56789 User Information: not present Host: www.example.org Port: 56789 Path: /a/b/c.txt Query: t=win&s=chess Fragment: para5 request-URI The term “request-URI” is not defined … Read more

What is the difference between a URI, a URL and a URN?

From RFC 3986: A URI can be further classified as a locator, a name, or both. The term “Uniform Resource Locator” (URL) refers to the subset of URIs that, in addition to identifying a resource, provide a means of locating the resource by describing its primary access mechanism (e.g., its network “location”). The term “Uniform … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)