Using append
Fixed closing of connections
Fixed HTTP parsing
Improved output