0

I am having a problem when i integrate API of our partner. They always use Json data in body of HTTP request for both "POST" and "GET" method.

I'm using scalaj library for creating HTTP request but it can not send json data in Body for GET request. when i put json data to body, the Method will change to POST automatically.

I also tried to use default HttpUrlConnection in Java, but it have same problem. When i call setDoOutput method, HttpUrlConnection will change Method to POST.

How can I solve this problem in Scala?

OneCricketeer
  • 126,858
  • 14
  • 92
  • 185
Huy
  • 1
  • 2

0 Answers0