JAVA代码转成C#
HttpClient httpclient = new HttpClient();
PostMethod postMethod = new PostMethod("http://www.abc.com");
httpclient.getParams().setParameter(HttpMethodParams.HTTP_CONTENT_CHARSET, "GBK");
postMethod.setRequestBody("abcdefg");
int statusCode = httpclient.executeMethod(postMethod);
String responseMsg = postMethod.getResponseBodyAsString();
请教帮忙把上面JAVA代码转成C#的。自己尝试过,一直不行,谢谢了
------解决方案--------------------HttpWebResponse
------解决方案--------------------C#也有WebClient,自己MSDN下。