How do I send payload with GET call using JAX

This question already has an answer here:

  • HTTP GET with request body 18 answers

  • 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

    上一篇: Angular,内容类型不是用$ http发送的

    下一篇: 如何通过使用JAX的GET调用发送有效内容