Added Content-Type reading
Added code to update the host table as well.