added 'head' mode for http requests