update xhr request