Make some HTTP parts dynamic, close #1581