I'm trying to use the HTTPS post method to post a URI. I created an HTTPS resource, but the test failed. However, using that resource, when I post my URI directly, I'm still able to get the result.
But when I use a variable to pass on the URI to the post method, it returns the Unknown Host Exception. Why does this happen? It looks like the host server has some access restrictions to connect directly to it, but only allows to post methods using URI directly.
Since I need to post the method for multiple data records, I have to use a variable to create the URI string and pass it. How do I get rid of the Unknown Host Exception in this case? Please advise.