httpRequest updated for Put methods