More robust HTTP check