http function update