N
N
Nikcet2021-11-13 14:25:05
Python
Nikcet, 2021-11-13 14:25:05

What is the difference between working with http and https through the requests library (python)?

For the sake of interest, I read the documentation of the requests library - docs.python-requests.org and such an idea has matured.

Initially, the library was developed to work with the insecure http protocol. Everything is clear here. But in the documentation, all examples apply to resources using the https protocol, which, in theory, should be protected.

I must say right away that I am not familiar with the internal structure of the protocols and my interest is not professional.

If working with them is no different, then why is https a "secure" protocol? What is it then protected from, if any person who is more or less familiar with programming can access information from any resource, regardless of the protocol used?

I would be grateful for both the explanation and the direction.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
albert-gaynullin, 2021-11-13
@albert-gaynullin

https://hostiq.ua/wiki/http-https/
Protocol differences are described here. The requests library essentially acts as a normal client, requests information and receives a response. HTTPS is needed to protect data from being received by third parties when working with the site.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question