Python HTTP client Twisted framework

I want to write a simple SSL HTTP client in Python and learn about the Twisted structure.

I need to be able to authenticate using the REST service, so I thought I would just send the username and password to the target server. Assuming authentication is successful, the client will receive a cookie.

Will the Twisted HTTP client automatically resend the cookie header for each subsequent request, or do I need to do something special? I have never used Twisted before.

thank

+3
source share
1 answer

HTTP-, Twisted, cookie - ?

"HTTP-, Twisted", , - , , X, Y, , .:) , , .

Twisted 11.1.0, twisted.web.client.CookieAgent cookieJar, :

  • cookie, .
  • cookie,

twisted.web.client.getPage cookies, .

, CookieAgent, cookie , .

- getPage, , , , , .

+4

Source: https://habr.com/ru/post/1764864/


All Articles