Add http support of hat blocks

See bug report for explanation