reowrked logging
fixed implementation of getContentLength; implemented getHeader and getHeaders