说明.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. 注意引用
  2. uses
  3. comobj
  4. //_________________________________HTTP通信函数返回信息
  5. function HTTPwebservice(url:string):string;
  6. var
  7. responseText: WideString;
  8. xmlHttp: OLEVariant;
  9. begin
  10. try
  11. xmlHttp:=CreateOleObject('Msxml2.XMLHTTP');
  12. xmlHttp.open('GET',url,false);
  13. xmlHttp.send();
  14. responseText:=xmlHttp.responseText;
  15. if xmlHttp.status='200' then
  16. begin
  17. HTTPwebservice:=responseText;
  18. end;
  19. xmlHttp := Unassigned;
  20. except
  21. exit;
  22. end;
  23. end;
  24. //______________________________
  25. //使用时调用即可 bdata:=HTTPwebservice('http://service.winic.org/sys_port/gateway/?id='+uid.Text+'&pwd='+pwd.Text+'&to='+mobstr+'&content='+content.Text+'&time=');
  26. ===================================================
  27. 发短信公共接口
  28. http://service.winic.org/sys_port/gateway/?id=[id]&pwd=[pwd]&to=[to]&content=[countent]&time=[time]
  29. [id]=用户名称
  30. [pwd]=用户密码
  31. [to]=接收手机号(100个以内) 以 , 号分隔
  32. [countent]=短信内容 70个字符
  33. [time]=定时发