parse-uri error when the query part has another ? character
(puri:parse-uri "/login?referer-route=/stock?q=lisp")
=>
Parse error:URI "/login?referer-route=/stock?q=lisp" contains illegal character #\? at position 27.
[Condition of type PURI:URI-PARSE-ERROR]
Whereas with quri
:
(quri:parse-uri "/login?referer-route=/stock?q=lisp")
NIL
NIL
NIL
NIL
"/login"
"referer-route=/stock?q=lisp"
NIL
With Python:
import urllib
urllib.parse.urlparse('/login?referer-route=/stock?q=lisp')
Out[4]: ParseResult(scheme='', netloc='', path='/login', params='', query='referer-route=/stock?q=lisp', fragment='')