Login and get page

Posted on 2006-05-06
Last Modified: 2010-04-23
Ok, basically, I want an elaboration of this question:

Like, how do I login to a page (e.g., get the page source, click a link on that new page, get the source of the resulting page, send some form data, logout.

I'm not sure on the login part, cause if I try downloading the page by sending an encoded user and pass, I can't login, gives me an error about invalid login or something of the sort.
Question by:codemaster3
    LVL 2

    Expert Comment

    You could use the webbrowser control or httpwebrequest or tcp sockets webbrowser control would probably be the easiest for you.

    Author Comment

    Care to elaborate?
    LVL 2

    Accepted Solution

    by: <-- good webbrowser control example
    <-- working example

    using tcp or httpwebrequest will be a bit more difficult for you because you will have to handle cookies but the httpwebrequest has a built in function which handles cookies you just need to set/send the cookies with the request after login.

    Author Comment

    Sounds fun :), I'll try it and see what I can come up with, thanks. I'll let you know how it goes.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
    Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now