Add http support of hat blocks

See bug report #233 for explanation