cpp-netlib/uri

throw network::uri_syntax_error when contains square brackets

Closed this issue · 4 comments

@glynos Hi glynos, I am using cpp-netlib/uri to re-implement python urlparse for better performance. I meet the square brackets case and want to quickly skip verify it. Can you give me some advice?

@litao-buptsse -- do you have a reference as to what we should be doing with the square bracket character?

@litao-buptsse, in the current implementation, the possibility to skip elements is not given. If you need to adapt the parser, the only thing I can suggest is to fork the repo.

I have started exploring an implementation for a parser that follows the WhatWG spec: https://github.com/glynos/uri/tree/whatwg_spec. It's still in progress but it might be a better opportunity to do what you are asking.

@glynos thanks for your advice