P
P
Peter2017-09-11 20:38:07
C++ / C#
Peter, 2017-09-11 20:38:07

Sending authorization to the site and receiving the page code after authorization. How?

Good afternoon. I'm trying to write applications for the provider's website. By login-password to receive the contents of your personal account.
I read about POST and GET requests, but did not understand how to send them adequately.
Through the developer console in Google Chrome, I tracked that the authorization seems to be leaving in the form of a POST request.
I found some pieces of code on the Internet, but since I haven’t done anything like this before, I don’t understand anything.
As I see the whole process, there is a form with two fields, I enter a login and password in it, by clicking on the form button, a certain type of string goes to the server and the response from the server containing the html of the personal account is placed in the variable, right?
Whether it matters or not, the site of the https provider.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
Zakharov Alexander, 2017-09-11
@Morpheus_God

Even if you play around, the topic is not at all simple. Here is an easy way to "play around"
https://stackoverflow.com/questions/32837084/use-w...
But it's not very suitable for serious work. There are even much lower-level ways, but this is very amateurish: https://msdn.microsoft.com/ru-ru/library/debx8sh9(...
If you are targeting Web-scrapping, then it is better to dig towards CefSharp. There you can inject JavaScript functionality into any loaded page, rob any information, pictures, in general, with due diligence, you can literally rape any site)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question