Added support HTTP-GET & HTTP-POST
Code refactoring