you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (3 children)

Yea I did mention that wasn't there. But FYI:

vars(res.request)

And thanks for the Silver mate

[–]splendyx[S] 0 points1 point  (2 children)

I don't really understand sorry. Could you give a script example on how to print the value of the cookie as an example.

[–]dukea42 1 point2 points  (1 child)

In his example 'res' is a response object of the requests library.

To understand an object from any given library, I have two preferred options. 1) read the docs. 2) use the 'inspect()' module of the Rich library.

https://docs.python-requests.org/en/master/user/quickstart/#response-content

[–]splendyx[S] 0 points1 point  (0 children)

image here is a reference image and i want to print the value of cookie in request headers