My server does not processes query parameters properly from this client.
To research this problem, i used simple public echo server. My query.http is
GET https://echo.free.beeceptor.com/sample-request?author=beeceptor
Comparing with curl command, which is
curl -v "https://echo.free.beeceptor.com/sample-request?author=beeceptor"
What i suppose to expect from this is, according to this page,
{
"method": "GET",
"path": "/sample-request?q=beeceptor",
"ip": "68.53.23.246",
"headers": {
"host": "echo.free.beeceptor.com",
"user-agent": "curl/7.88.1",
"accept": "*/*",
"accept-encoding": "gzip"
},
"parsedQueryParams": {
"author": "beeceptor" // <--- curl, as expected
}
}
Instead, reply body is
"method": "GET",
"protocol": "https",
"host": "echo.free.beeceptor.com",
"path": "/sample-request?author%3dbeeceptor",
"ip": "68.53.23.246",
"headers": {
"Host": "echo.free.beeceptor.com",
"Accept": "*/*",
"Accept-Encoding": "gzip"
},
"parsedQueryParams": {
"author=beeceptor": "" // <-- rest.nvim, wrong
}
}
I've tested it for multiple arguments, same result, e.g. for ?id1=1&id2=2 reply contains "id1=1&id2=2" : "". (
My server does not processes query parameters properly from this client.
To research this problem, i used simple public echo server. My
query.httpisComparing with curl command, which is
curl -v "https://echo.free.beeceptor.com/sample-request?author=beeceptor"What i suppose to expect from this is, according to this page,
{ "method": "GET", "path": "/sample-request?q=beeceptor", "ip": "68.53.23.246", "headers": { "host": "echo.free.beeceptor.com", "user-agent": "curl/7.88.1", "accept": "*/*", "accept-encoding": "gzip" }, "parsedQueryParams": { "author": "beeceptor" // <--- curl, as expected } }Instead, reply body is
I've tested it for multiple arguments, same result, e.g. for
?id1=1&id2=2reply contains"id1=1&id2=2" : "". (