【发布时间】:2016-05-20 14:33:56
【问题描述】:
我尝试使用 Postman 作为参数传递的 Json 字符串是: {“事件”:“你好”,“数据”:“史密斯”}
所以在 Postman 中,上述 GET 的 Json 字符串将附加在下面:
http://localHost:8080/....../foo?jasonRequest?{"event":"hello","data":"Smith"}
我收到 HTTP 状态 500 - java.net.URISyntaxException: Illegal character in query at index.
我试过转义双引号,但还是不行。
【问题讨论】:
-
将json文件或数据放入body中
-
@brykneval 是一个
GET请求,它没有body的选项。 -
谢谢,效果很好。