Renovated the HTTP Functions