Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Using C#, how can I log into a website and click Continue

Using C#, how can I log into a website and click Continue

Scheduled Pinned Locked Moved C#
questioncsharphelp
7 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DanYELL
    wrote on last edited by
    #1

    Any chance, any one can help me put together a simple C# program that accesses a website, logs in with a user name and passcode and clicks Continue? Or do you know of a sample project that I can find? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

    R P A M G 6 Replies Last reply
    0
    • D DanYELL

      Any chance, any one can help me put together a simple C# program that accesses a website, logs in with a user name and passcode and clicks Continue? Or do you know of a sample project that I can find? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      Hello overworked graduate student :), see the answer on this[^] page for an example of how to do this. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      1 Reply Last reply
      0
      • D DanYELL

        Any chance, any one can help me put together a simple C# program that accesses a website, logs in with a user name and passcode and clicks Continue? Or do you know of a sample project that I can find? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #3

        Please don't cross-post. (Oh shoot, I hit the wrong post, sorry.)

        1 Reply Last reply
        0
        • D DanYELL

          Any chance, any one can help me put together a simple C# program that accesses a website, logs in with a user name and passcode and clicks Continue? Or do you know of a sample project that I can find? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #4

          Log in to Website Programmatically[^] might help you.

          1 Reply Last reply
          0
          • D DanYELL

            Any chance, any one can help me put together a simple C# program that accesses a website, logs in with a user name and passcode and clicks Continue? Or do you know of a sample project that I can find? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

            M Offline
            M Offline
            Mohit Leekha
            wrote on last edited by
            #5

            As such there is no standard way to login to a website. You can use this link to see how to login to twitter programaticcaly.Login To website Programatically

            1 Reply Last reply
            0
            • D DanYELL

              Any chance, any one can help me put together a simple C# program that accesses a website, logs in with a user name and passcode and clicks Continue? Or do you know of a sample project that I can find? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

              G Offline
              G Offline
              Gavin Roberts
              wrote on last edited by
              #6

              You need to use a WebRequest and CookieContainer. That way, on your first login request, the authentication cookie is returned and then sent with any subsequent requests, thus remaining logged in. http://stackoverflow.com/questions/787857/multiple-webrequest-in-same-session[^]

              1 Reply Last reply
              0
              • D DanYELL

                Any chance, any one can help me put together a simple C# program that accesses a website, logs in with a user name and passcode and clicks Continue? Or do you know of a sample project that I can find? Please, any response any one can give me will be greatly appreciated. Sincerely, Danielle Brina

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                Depends on the website. Often you just send a POST and keep track of the cookies.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups