For simple POST call with content type json, I'm sending it like the following from my Java code in my sendPostRequest1 method. But the second method sendPostRequest2 is somewhat different because
here I'm using two URLs, one is the main URL and other is the body URL. Also, the content type should be : Content-Type=text/uri-list
I tested it in POSTMAN and it works fine and not sure how to do it in my java code.
I won't be able to use StringEntity class here, right?