Beispiel #1
0
 public ProxySpider(List<ProxySourcePageInfo> sourcePageInfo)
 {
     this._SourcePageInfo = sourcePageInfo;
     this._ProxyList = new List<ProxyInfo>();
     this._httper = new NewHttper();
     this._httper.RequestStringCompleted += new NewHttper.RequestStringCompleteEventHandler(_httper_RequestStringCompleted);
 }
Beispiel #2
0
 public MainForm()
 {
     InitializeComponent();
     this.httper = new NewHttper();
     this.httper.Cookie = new System.Net.CookieContainer();
     this.httper.RequestStringCompleted += new NewHttper.RequestStringCompleteEventHandler(httper_RequestStringCompleted);
 }
Beispiel #3
0
        public TestForm()
        {
            InitializeComponent();

            this.httper = new NewHttper();
            //if (true)
            //{
            //    this.httper.Proxy = WebRequest.GetSystemWebProxy() as WebProxy;
            //}
            this.httper.Cookie = new CookieContainer();
            this.httper.RequestStringCompleted += new NewHttper.RequestStringCompleteEventHandler(nhttper_RequestStringCompleted);
        }
Beispiel #4
0
 private void Form1_Load(object sender, EventArgs e)
 {
     cbxPageCharset.SelectedIndex = 0;
     tcMessage.SelectedIndex = 1;
     this.cookie = new CookieContainer();
     this.httper = new NewHttper();
     this.httper.Referer = cbxUrl.Text.Trim();
     this.httper.RequestStringCompleted += new NewHttper.RequestStringCompleteEventHandler(httper_RequestStringCompleted);
     this.wbMain.Navigate("about:blank");
     this.wbMain.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(wbMain_DocumentCompleted);
     this.wbMain.Navigated += new WebBrowserNavigatedEventHandler(wbMain_Navigated);
     this.wbMain.ProgressChanged += new WebBrowserProgressChangedEventHandler(wbMain_ProgressChanged);
 }
Beispiel #5
0
        public MainForm()
        {
            InitializeComponent();
            cookie = new CookieContainer();

            httper = new NewHttper();
            httper.Cookie = cookie;
            httper.Charset = "UTF-8";
            httper.RequestDataCompleted += new NewHttper.RequestDataCompletedEventHandler(httper_RequestDataCompleted);
            httper.RequestStringCompleted += new NewHttper.RequestStringCompleteEventHandler(httper_RequestStringCompleted);

            this.timer = new Timer();
            this.timer.Interval = 20000;
            this.timer.Tick += new EventHandler(timer_Tick);
            this.timer.Stop();

            sf = new StatusForm();
            harvestList = new List<int>();
            this.currentOperation = EnumOperation.None;
        }