News for hackers. Stuff that matters.
Re:Show HN: A simple echo server for testing HTTP clients by layer8 on Sunday May 21, 2023 @01:21PM (#36022979)
Braces and square brackets (as well as double quotes) are not allowed unencoded in query strings, see the definition of pchar in https://datatracker.ietf.org/doc/html/rfc3986#section-3.4.
Re:Show HN: A simple echo server for testing HTTP clients by __s__ on Sunday May 21, 2023 @02:46PM (#36023679)
That's true. Although it will make the URL longer, I have decided to use encodeURIComponent to escape characters and avoid potential bugs.