Last active
December 20, 2018 11:24
-
-
Save baybal/c6059538121443aaad2dddf17108aead to your computer and use it in GitHub Desktop.
White space escape failure
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018/12/20 17:23:16 [warning] You are running pREST in public mode. | |
[prest] listening on 0.0.0.0:8000 and serving on / | |
[negroni] 2018-12-20T17:23:28+06:00 | 400 | 466.727µs | localhost:8000 | GET /DB0001/public/test | |
___________________________________________________________________________________ | |
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?Auto%20ID=1" | |
{ | |
"error": "could not perform WhereByRequest: invalid identifier: Auto ID" | |
} | |
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?\"Auto\ ID\"=1" | |
400 Bad Request | |
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?\"Auto ID\"=1" | |
400 Bad Request | |
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?\'Auto ID\'=1" | |
400 Bad Request | |
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?\'Auto\ ID\'=1" | |
400 Bad Request | |
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?Auto\ ID=1" | |
400 Bad Request | |
baybal@xps ~/db frontend $ curl "http://localhost:8000/DB0001/public/test?Auto ID=1" | |
400 Bad Request |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment