changed httpclient code to winphone version