WP7中HttpWebRequest异常

在Windows Phone 7 中使用 HttpWebRequest.EndGetResponse获取服务器返回资源时出现异常:The remote server returned an error: NotFound.

HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(asynchronousResult);

在GET方式中一般不会出现这个异常,但是在POST方式中就可能出现这个异常,出这个异常的原因:是因为POST参数错误。少了某个参数或参数名不正确,这可能是服务端对参数做了校验。

原文地址:https://www.cnblogs.com/xdpxyxy/p/3130682.html