I have an application that entertains a POST
request. To request, I need to define some headers, boundaries and hyphens. In other words, I need to craft the complete request. Which I did successfully using HttpURLConnection
.
Now, I want to request the application from my Spring application.
Say, I have three applications A(sensor), B(spring) and C(server).
In this case, B will act as a bridge which receives the request from A authenticate it and send it to the C.
I don't want to craft the same request again in Spring it just redirect the request to the server. Is there any mechanism in Spring for this?