PostRequestFactory library

From time to time every web programmer has to send http request manually from the server side directly from code, usually we have at our disposal framework classes that know how to send and receive http requests and the only thing we should do is to create the request body and eventually add some headers and cookies. The creation of the request body isn’t a very difficult job, but it is a time consuming and error prone task. Several weeks ago I had to generate some http request for being able to use an export functionality exposed by a public server and for that, of course, I had to create some web requests that have multipart/form-data content type, but this time I’ve decided to make a helper library that I will use for generating this kind of request for the future use. As usual I use my personal projects for learning new stuff and to practice things that I didn’t used for a long time. Main objectives were:

At the end of the project I was proud of myself, because I’ve accomplished all the objectives.

Regarding impressions about each objective I’ll say a few words about each one.

If you’re curious about PostRequestFactory you can take a look at: