Open nickpending opened 2 days ago
This is inline with HTTPie and also cURL's --data-urlencode <name=content>
option.
You can opt out of the encoding by having the query as part of the URL:
$ xhs "test.example.com?foo==b%61r" --offline
GET /?foo==b%61r HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Host: test.example.com
User-Agent: xh/0.22.0
Using a query string with URL encoding results in xh double encoding the string.
b%61r becomes b%2561r
I'm not sure if this is intended or not, but if it is, it would be nice to have an option to suppress encoding.