How do I send payload with GET call using JAX
This question already has an answer here:
I am not developing a rest call here
Actually you are, because javax.ws.rs
is the base package of RESTful web services in Java and javax.ws.rs.client.Client
is the base interface for RESTfull web service clients: Overview of the Client API.
That being said you'll probably need to either build your own client that allows you to send a payload in a GET request or find an existent web service client with such capability.
The correctness of sending a body in a GET request is actually a different topic already discussed in this Q&A: HTTP GET with request body
链接地址: http://www.djcxy.com/p/71458.html