Beispiel #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            UnHttpClient http = new UnHttpClient("https://alipayapi.shaokaolaile.com/pay/order.ashx");
            UnAttrRst rst = http.sendMsgSyn("");

            //http.setIntTransfer(new transfer());
            //http.sendMsg("");
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     UnHttpClient http = new UnHttpClient("http://upimage.shaokaolaile.com/upimage.ashx");
     http.setIntTransfer(new transfer());
     http.upFile(textBox1.Text, UnHttpUpEvent.Image);
 }
Beispiel #3
0
 // 发短信;
 private UnAttrRst sendTclk(string pNum, string sCont, string sTime)
 {
     if (sTime == null)
     {
         sTime = DateTime.Now.ToString("yyyyMMddHHmmss");
     }
     sCont = HttpUtility.UrlEncode(sCont, Encoding.GetEncoding("GB2312"));
     string _url = _urlTclk + "/WS/Send.aspx?CorpID=" + _User + "&Pwd=" + _Pass + "&Mobile=" + pNum + "&Content=" + sCont + "&Cell=&SendTime=" + sTime;
     UnHttpClient hc = new UnHttpClient(_url);
     UnAttrRst rst = hc.sendMsgSyn("");
     return rst;
 }