Added retrieval of http response code
Removed dependency on web server