Http application layer fixes