使用 httpie v2.3.0,我正在与一个 REST api 交互,该 api 识别%20
但不+
用于查询参数值中的空间编码。有没有办法改变 httpie 行为以实现以下所需的行为?
询问:
http -v :9000/query/bugsigdb/jaccard_nbor_ss 'source.type==signature' \
source=='Signature 123' e_type==Signature_Taxonomy rev_e_type==Taxonomy_Signature
结果是:
GET /query/bugsigdb/jaccard_nbor_ss?source.type=signature&source=Signature+123&e_type=Signature_Taxonomy&rev_e_type=Taxonomy_Signature HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: localhost:9000
User-Agent: HTTPie/2.3.0
期望的结果:
GET /query/bugsigdb/jaccard_nbor_ss?source.type=signature&source=Signature%20123&e_type=Signature_Taxonomy&rev_e_type=Taxonomy_Signature HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: localhost:9000
User-Agent: HTTPie/2.3.0
Signature+123
注意和之间的区别Signature%20123
。