Re: URL query syntax

Daniel Stenberg via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
On Mon, 2 Oct 2023, Bachir Bendrissou via curl-users wrote:

> Are there any query strings that are invalid and should be rejected by the 
> Curl parser?

Not really, no. The query part is just a sequence of characters.

> *"https://example.com/?a=ba=a
> The URL is accepted with no errors reported, despite missing a delimiter.

There is no such standard that says a query part must be a set of name = 
content pairs. While it is often used so, that is just by convention.

-- 

  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.