update webrequest code