Closed jan-krakora closed 2 years ago
I have found that in some filter before the charon's ReverseProxyFilter
has been called request.getParameter()
which in turn reads the request content. So the input stream for proxy is not available anymore.
Forwarding form data with POST request and Content-Type "application/x-www-form-urlencoded" does not work properly. Forwarded request does not contain the form data any more.
I have found that:
The
org.springframework.http.RequestEntity
is created withincom.github.mkopylec.charon.forwarding.HttpRequestMapper
and its body is always resolved like thisProblem with this approach is that "x-www-form-urlencoded" requests does not contain data within the InputStream. They are stored as params. See
request.getParameterMap()
RequestEntity
for "x-www-form-urlencoded" request can be constructed like thisOr is there any other way how to properly forward form requestes right now?