Why this HTTP specific code here?