开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 3868|回复: 32
收起左侧

[已解决] post登录问题

 关闭 [复制链接]
结帖率:93% (39/42)
发表于 2012-1-27 08:39:11 | 显示全部楼层 |阅读模式   吉林省辽源市
2精币
[e]
.版本 2
.支持库 spec
.程序集 窗口程序集1
.子程序 __启动窗口_创建完毕
读验证码 ()
调试输出 ()
.子程序 读验证码
图片框1.图片 = 网页_验证码读取 (“http://my.2345.com/check_code.php?0.5088111784372931”, )
.子程序 _图片框1_鼠标左键被按下, 逻辑型
.参数 横向位置, 整数型
.参数 纵向位置, 整数型
.参数 功能键状态, 整数型
读验证码 ()
.子程序 _按钮1_被单击
.局部变量 post地址, 文本型
.局部变量 post数据, 文本型
post地址 = “http://my.2345.com/login_for_index.php
post数据 = “cmd=login&vTime=7776000&forward=http%253A%252F%252Fmy.2345.com%252F&username=” + 编辑框1.内容 + “&password=” + 编辑框2.内容 + “&pImgCode=” + 编辑框3.内容 + “&button=%B5%C7%C2%BC”
调试输出 (彗星HTTP读文本 (post地址, “post”, , , post数据, ), 0, )

[/e]
调试输出的是一堆乱码懂是什么意思    下面是调试输出的结果
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <input type="hidden" name="_ieStore" id="_ieStore" style="BEHAVIOR:url(#default#userData)" />
   <div id="header"></div>
   <script language="JavaScript" type="text/javascript">
   var main = domain(),search_,xhr = null,ready_ = false,isIE =/*@cc_on!@*/! 1;
   document.domain = main.replace("my.", "");
   var em = $,cElement = $c,eName = $t;
   function $(a) {
    return document.getElementById(a)
   }
   function $c(a) {
    return document.createElement(a)
   }
   function $t(a) {
    var b = arguments[1] || document;
    return b.getElementsByTagName(a)
   }
   function $cls(a) {
    var b = arguments[1] || document,
    rs = [],
    o = b.getElementsByTagName("*");
    for (var i = 0,
    t, len = o.length; i < len; i++) {
     t = o;
     if (t.className == a) {
      rs.push(t)
     }
    }
    return rs
   }
   function domain() {
    search_ = location.search;
    var a = location.host,
    _pos = a.indexOf(":");
    return (_pos == -1) ? a: a.substring(0, _pos)
   }
   function g_cookie(a) {
    var b = storeUtil.get(a, arguments[1]);
    if (b || b == "") {
     return b
    } else {
     return cookieStore.get(a)
    }
   }
   function subs(a, b) {
    var c = 0,
    _out = "";
    for (var d = 0; d < a.length; d++) { (a.charCodeAt(d) > 128) ? c += 2 : c++;
     _out += a.charAt(d);
     if (c >= b) return _out
    }
    return _out
   }
   function s_cookie() {
    var a = [],
    _para = {};
    for (var b = 0,
    _len = arguments.length; b < _len; b++) {
     a = arguments
    }
    if (String.prototype.toLowerCase.apply(typeof(a[0])) != "string") {
     switch (a[0].store) {
     case "ie":
      _para.store = ieStore.init();
      break;
     case "ff":
      _para.store = mozillaStore.init();
      break;
     case "cookie":
     default:
      _para.store = cookieStore.init()
     }
     a.splice(0, 1)
    }
    _para.exps = typeof(a[2]) != "undefined" ? Math.ceil(a[2] / (3600 * 24)) : undefined;
    _para.name = a[0];
    _para.val = a[1];
    _para.path = a[3];
    _para.domain = a[4];
    _para.secure = a[5];
    storeUtil.set(_para);
    return false
   };
   function _body() {
    return (document.compatMode && document.compatMode != "BackCompat") ? document.documentElement: document.body
   }
   function initXhr() {
    if (window.XMLHttpRequest) {
     try {
      xhr = new XMLHttpRequest()
     } catch(e) {
      xhr = false
     }
    } else if (window.ActiveXObject) {
     try {
      xhr = new ActiveXObject("Msxml2.XMLHTTP")
     } catch(e) {
      try {
       xhr = new ActiveXObject("Microsoft.XMLHTTP")
      } catch(e) {
       xhr = false
      }
     }
    }
   }
   String.prototype.trim = function() {
    return this.replace(/(^\s*)|(\s*$)/g, "")
   };
   var storeUtil = {
    _init: false,
    init: function() {
     var a = arguments[0],
     _store;
     if (!a) {
      if (isIE) {
       _store = ieStore
      } else if (window.globalStorage) {
       _store = mozillaStore
      } else {
       _store = cookieStore
      }
     } else {
      switch (a) {
      case "ie":
       _store = ieStore;
       break;
      case "ff":
       _store = mozillaStore;
       break;
      case "cookie":
      default:
       _store = cookieStore
      }
     }
     this.store = _store.init();
     this._init = this.store.isInit() ? true: false;
     return this.isInit()
    },
    get: function(a) {
     if (this.store == null) {
      this.init();
     }
     var b = arguments[1] || this.store;
     return b.get(a)
    },
    set: function(a) {
     var b = a.store || this.store;
     b.set(a)
    },
    del: function(a) {
     var b = arguments[1] || this.store;
     b.del(a)
    },
    isInit: function() {
     return this._init
    }
   },
   ieStore = {
    exps: 180,
    _init: false,
    init: function() {
     if (!this.isInit() && !$("_ieStore")) {
      this.store = $c("INPUT"),
      this.store.type = "hidden",
      this.store.id = "_ieStore",
      this.store.addBehavior("#default#userData");
      $("header").appendChild(this.store);
      this._init = true
     } else if ($("_ieStore")) {
      this.store = $("_ieStore");
      this._init = true
     }
     return this
    },
    get: function(a) {
     try {
      this.store.load(a)
     } catch(e) {
      return null
     }
     return this.store.getAttribute("__store__") || null
    },
    set: function(a) {
     var b = a.name,
     _val = a.val,
     _exps = typeof(a.exps) != "undefined" ? a.exps: this.exps;
     var c = new Date();
     c.setDate(c.getDate() + _exps);
     this.store.load(b);
     this.store.expires = c.toUTCString();
     this.store.setAttribute("__store__", _val);
     this.store.save(b)
    },
    del: function(a) {
     this.set({
      name: a
     },
     false, -1)
    },
    isInit: function() {
     return this._init
    }
   },
   mozillaStore = {
    _init: false,
    init: function() {
     this._domain = main.replace("my.", "");
     this._init = true;
     return this
    },
    get: function(a) {
     var b = window.globalStorage[this._domain].getItem(a);
     return b ? b.value || 0 : null
    },
    set: function(a) {
     window.globalStorage[this._domain].setItem(a.name, a.val)
    },
    del: function() {
     window.globalStorage[this._domain].removeItem(_name)
    },
    isInit: function() {
     return this._init
    }
   },
   cookieStore = {
    _init: false,
    _exps: 180,
    _secure: "",
    init: function() {
     if (!this.isInit()) {
      this._domain = main.replace("my.", "");
      this._init = true
     };
     return this
    },
    get: function(a) {
     var b = document.cookie.split("; "),
     a = a + "=";
     for (var c = 0,
     _len = b.length; c < _len; c++) {
      if (b[c].indexOf(a) != "-1") {
       try {
        return decodeURIComponent(b[c].replace(a, ""))
       } catch(e) {
        return unescape(b[c].replace(a, ""))
       }
      }
     }
     return null
    },
    set: function(a) {
     var b = new Date();
     var c = a.name,
     _val = a.val,
     _exps = typeof(a.exps) != "undefined" ? a.exps: this._exps,
     _domain = a.domain || this._domain,
     _path = a.path || "/",
     _secure = a.secure || this._secure;
     b.setDate(b.getDate() + _exps);
     var d = c + "=" + escape(_val) + (_exps ? ";expires=" + b.toUTCString() : "") + (_path ? ";path=" + _path: "") + (_domain ? ";domain=" + _domain: "") + (_secure ? ";secure=": "");
     document.cookie = d
    },
    del: function(a) {
     if (String.prototype.toLowerCase.apply(typeof(a)) == "string") {
      _name = a;
      a = {
       name: _name,
       val: ""
      }
     }
     a.exps = -1;
     a.secure = "";
     this.set(a)
    },
    isInit: function() {
     return this._init
    }
   };
   storeUtil.init()

   s_cookie("lastLogin","2012-01-27%2008%3A33%3A36",604800,"/","2345.com");
   s_cookie("integral","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"name_ie","%56%49%53%54%54%55%48%51%49",604800,"/","2345.com");
   s_cookie({store:"cookie"},"passid","322630",604800,"/","2345.com");
   s_cookie({store:"cookie"},"uid","950804",604800,"/","2345.com");
   s_cookie({store:"cookie"},"u_sec","d24cbd22544d8c71f2911523f34bb3a9|87a0c1b2421cdb107bd5b48c6624ffd9",604800,"/","2345.com");
   s_cookie({store:"cookie"},"name","815667031",604800,"/","2345.com");
   s_cookie({store:"cookie"},"email","localhhost@localhost.localhost",604800,"/","2345.com");
   s_cookie({store:"cookie"},"discuz_auth","BnlRblM7XWMEbwJgBTZUYlQ%2FUjYGYQQxUThWPVI4AXJTLQAlAWEPJlZuBjRTPgFgAmNbMVM3XGhSOQRoXDdVMAY%2BUTZTcF12BDMCIgV2VCdUZ1JyBjcEOFE0Vj9SPAFjU2wAMgE9D2VWMAY2UzYBPAI8WzxTPlxqUjoEaVwyVTIGO1EzU29dNQRmAmEFZFQyVD5SMgZrBDFRKlZpUmMBNVMxADoBOQ84Vm8GNlMyAWkCNltmU3VcKVIqBGpcMFVsBmJRZFM3XWoEOgI%2BBXZUJFQmUmwGPARmUW1WYFJmATtTKwAi",604800,"/","2345.com");
   s_cookie({store:"cookie"},"iden","c18ff8959ec341f9883b16d88bfbc67f",604800,"/","2345.com");
   s_cookie("skin","",604800,"/","2345.com");
   s_cookie("skinz","",604800,"/","2345.com");
   s_cookie("bgid","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"ggbd","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"selfTitle","",604800,"/","2345.com");
   s_cookie("code_str","",604800,"/","2345.com");
            s_cookie({store:"cookie"},"code_str","",604800,"/","2345.com");
   s_cookie("bgurl","",604800,"/","2345.com");
   s_cookie("site_str","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"site_str","",604800,"/","2345.com");
            s_cookie({store:"cookie"},"localNav","",604800,"/","2345.com");
   s_cookie("localNav","",604800,"/","2345.com");
            s_cookie({store:"cookie"},"mystyle_display","",604800,"/","2345.com");
   s_cookie("mystyle_display","",604800,"/","2345.com");
   s_cookie("fl","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"theme","",604800,"/","2345.com");
            s_cookie("theme","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"theme_logo","",604800,"/","2345.com");
            s_cookie("theme_logo","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"lc","",604800,"/","2345.com");
            s_cookie("lc","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"wc","",604800,"/","2345.com");
            s_cookie("wc","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"wc_n","",604800,"/","2345.com");
            s_cookie("wc_n","",604800,"/","2345.com");
   s_cookie({store:"cookie"},"wc_sf","",604800,"/","2345.com");
   s_cookie("wc_sf","",604800,"/","2345.com");location.href="http://bbs.2345.com/api/passport.php?action=login&cookieTime=604800&auth=BnlRblM7XWMEbwJgBTZUYlQ%2FUjYGYQQxUThWPVI4AXJTLQAlAWEPJlZuBjRTPgFgAmNbMVM3XGhSOQRoXDdVMAY%2BUTZTcF12BDMCIgV2VCdUZ1JyBjcEOFE0Vj9SPAFjU2wAMgE9D2VWMAY2UzYBPAI8WzxTPlxqUjoEaVwyVTIGO1EzU29dNQRmAmEFZFQyVD5SMgZrBDFRKlZpUmMBNVMxADoBOQ84Vm8GNlMyAWkCNltmU3VcKVIqBGpcMFVsBmJRZFM3XWoEOgI%2BBXZUJFQmUmwGPARmUW1WYFJmATtTKwAi&forward=http%3A%2F%2Fmy.2345.com%2F&verify=fed784433675903fd1d93ce8fce93018";</script>” | 0 | (空)

最佳答案

查看完整内容

看下返回的文本是什么编码的 解译下应该就没问题了

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳
结帖率:100% (12/12)
发表于 2012-1-27 08:39:12 | 显示全部楼层   福建省厦门市
看下返回的文本是什么编码的  解译下应该就没问题了

评分

参与人数 1荣誉 +1 收起 理由
Hoibben + 1 热心帮助他人,荣誉+1,希望继续努力(*^__^*) 嘻嘻!

查看全部评分

回复

使用道具 举报

结帖率:93% (39/42)
 楼主| 发表于 2012-1-28 08:49:53 | 显示全部楼层   吉林省辽源市
人呢   帮帮我的忙
回复

使用道具 举报

结帖率:43% (3/7)
发表于 2012-1-28 10:26:44 | 显示全部楼层   湖北省孝感市
输出调试 貌似错了把 只需要输出返回文本
回复

使用道具 举报

结帖率:93% (39/42)
 楼主| 发表于 2012-1-28 11:38:38 | 显示全部楼层   吉林省辽源市
怎么查看返回的是什么编码
回复

使用道具 举报

结帖率:97% (33/34)
发表于 2012-1-28 12:14:49 | 显示全部楼层   四川省宜宾市
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
gb2312的,不是编码问题,是不是post错网址了
回复

使用道具 举报

结帖率:0% (0/1)
发表于 2012-1-28 12:52:27 | 显示全部楼层   山西省太原市
我额  看看就头痛!
回复

使用道具 举报

结帖率:93% (39/42)
 楼主| 发表于 2012-1-28 13:07:04 | 显示全部楼层   吉林省辽源市
地址不能有错 我输入错的的帐号和验证码调试输出下列内容
* “<script language="javascript">
                        <!--
                                alert("验证码输入错误..");history.go(-1)
                        -->
                                </script>”
* “<script language="javascript">
                        <!--
                                alert("验证码输入错误..");history.go(-1)
                        -->
                                </script>”
* “<script language="javascript">
                        <!--
                                alert("用户名不存在或密码错误!");history.go(-1)
                        -->
                                </script>”
* “<script language="javascript">
                        <!--
                                alert("验证码输入错误..");history.go(-1)
                        -->
                                </script>”
回复

使用道具 举报

结帖率:93% (39/42)
 楼主| 发表于 2012-1-30 14:19:55 | 显示全部楼层   吉林省辽源市
今天论坛刚刚恢复   人呢 帮我看看我的问题
回复

使用道具 举报

结帖率:0% (0/2)
发表于 2012-1-30 14:23:39 | 显示全部楼层   江苏省无锡市
帮你顶一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表