extract hostname from url when using http backends for local state checks
dump complete request on errors