Hi,

 

I am using the HttpCore components to create a Reverse Proxy Http
Server. I have a requirement where I should be able to capture an
HttpRequest for a POST request which is being submitted to a backend
server X and save the POST Data into a database table. Later, I want to
read the saved POST data from the database and create a new HttpPost
object with it and apply that HttpPost to another server Y using an
HttpClient instance. I am using HttpClient 4.0 instance to interface
with the backend servers in my Reverse proxy application.

 

For a form submit POST or a multipart POST Request, how do I save the
Non-repeatable (streaming) or a repeatable Entity from the HttpRequest
object into the database, so that I can create multiple HttpPost objects
populated with the saved Entity data (repeatable)? 

 

Can the classes org.apache.http.impl.entity.EntitySerializer and
org.apache.http.impl.entity.EntityDeserializer be extended to solve this
problem? Or is there any other better and efficient way to achieve this?

 

Thanks,

Brijesh

 

Reply via email to