WebBrowser你完全可以把它当作IE

解决方案 »

  1.   

    不明白说啥,Referer似乎与浏览器无关吧
      

  2.   

    this.UserName = "test";
                this.Password = "test";
                this.rmNum = this.textBox3.Text;            string strPostData = String.Format("uid=&langx='gb'&username={0}&passwd={1}&rmNum={2}&SS={3}&SR={4}&TS={5}&Submit=UrlDecode('确认')"
                                                        , this.UserName
                                                        , this.Password
                                                        , this.rmNum
                                                        , this.SS
                                                        , this.SR
                                                        , this.TS
                                                        );            object o = null;
                object o1 = System.Text.Encoding.ASCII.GetBytes(strPostData);    
                object o2 = "Content-Type: application/x-www-form-urlencoded\r\n";  //必须要加的
                axWebBrowser1.Navigate("http://vm080.com/app/member/login.php", ref o, ref o, ref o1, ref o2);++++++++++++++++++++++++++++++++++++++++++++++++++++++这是我写的post过程。      , this.SS    , this.SR , this.TS 这三个值是变量,也能实现了。但执行的结果,似乎已登陆,但axWebBrowser1还是返回该网站的首页,什么原因?(我想通过登陆后转到任意子页面。)