How to log in to Instagram.com?

I just started learning C#, theory is very boring without practice, so I decided to tinker and write an application for some activity in this network.

After reading about POST/GET requests and looking at a couple of examples, I realized that things are somehow different here. When analyzing authorization requests, a login with a password is not sent there, that is, you can not poison a single-line request as in the examples, or I did not find how.

And there was an idea to send a username and password through the form on the site, but I don't know how to implement it at all. Logically, this is easier, since you only need to send two words and simulate pressing a button. But here's how to implement it nowhere found. If someone has encountered this, please help.

Author: Nicolas Chabanovsky, 2014-08-17

2 answers

Frankly speaking, the idea with the form and all sorts of emulations of pressing buttons looks dubious and rather clumsy. Instagram has its own API, which allows you to perform all sorts of actions, including, of course, authentication. Read more here

 4
Author: DreamChild, 2014-08-17 12:09:04

You can do this, but first you need to go to instagrav via GET and save cookies and then send requests via POST. To do this, use CookieCollection, HttpWebRequest, and HttpWebResponse.

 0
Author: Mikhail121, 2016-01-18 12:57:22