Converted code from http to http4

Please review and merge. We have also formatted the code in this five files. As, it was having some extra spaces and lines. But the code is working now.