Loggin to a website from my program

0

I'm making a console application in basic C #. The idea is to logge to a site (which already have the necessary headers), and store in variables the data entered by the person. Is there any "simple" way to achieve this? I was watching GET / POST but I really did not understand.

The idea would be the following:

  • Ask the user for their username / password (Ok)

  • Store that data in variables (Ok)

  • With these data fill out a login form on a page
  • Once the login has been achieved, print the text inside an ID in the HTML (which I also have)
asked by Nick 04.08.2016 в 06:01
source

1 answer

1

I understand that what you are trying to do is make a C # program to login on a page, right?

You should do an HttpPost (not GET) to the URL where the Web retrieves the credentials.

That is, make a POST on the URL that appears in the action of the form on the login screen.

In this other thread, I think you are discussing your same problem: link

    
answered by 04.08.2016 в 10:13