1 Replies - 671 Views - Last Post: 18 April 2010 - 10:18 AM Rate Topic: -----

#1 -ryuk-  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 23-March 10

Getting info from webpage

Posted 18 April 2010 - 09:40 AM

Hello,

I want my program to login to my website, and then find info on it.

To get the web source im using:

MessageBox.Show(getPageSource("http://mmoxautomation.xtreemhost.com/Membership/login.php?amember_login=Test&amember_pass=t3st&login_attempt_id=1271548162"));


        string getPageSource(string URL)
        {
            System.Net.WebClient webClient = new System.Net.WebClient();
            string strSource = webClient.DownloadString(URL);
            webClient.Dispose();
            return strSource;
        }



This crashes my program without any errors, it just closes.

After login I need it to check the website for: "Helios Gathering - Premium gather bot." but I havent been able to even try to code this as the first bit doesn't work..

Please help.

Is This A Good Question/Topic? 0
  • +

Replies To: Getting info from webpage

#2 Tanner.R  Icon User is offline

  • New D.I.C Head

Reputation: 4
  • View blog
  • Posts: 33
  • Joined: 17-April 10

Re: Getting info from webpage

Posted 18 April 2010 - 10:18 AM

Check these out: :)
Log In To Website Programmatically
How To Get Content From a Website
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1