摘要: using System;using System.IO;using System.Security.Cryptography;using System.Text;using System.Web.Security;namespace Teewoo.Common{ /// /// 加密解密算法的具体实现类 /// public class EncryptHelper { /// /// 生成32位的MD5字符串:原生态加密(FormsAuthentication) /// /// //... 阅读全文
posted @ 2013-10-16 18:46 玢棂 阅读(555) 评论(0) 推荐(0) 编辑
摘要: 1 //body是要传递的参数,格式"roleId=1&uid=2" 2 //post的cotentType填写: 3 //"application/x-www-form-urlencoded" 4 //soap填写:"text/xml; charset=utf-8" 5 public static string PostHttp(string url, string body, string contentType) 6 { 7 HttpWebRequest httpWebRequest = (HttpWebRequest) 阅读全文
posted @ 2013-10-16 18:25 玢棂 阅读(62347) 评论(0) 推荐(7) 编辑