You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So imagine I want to send a POST request to an authenticated endpoint. I need to include a certain cookie with an ACCESS_TOKEN
You can do it manually but that ACCESS_TOKEN will expire and need to be updated again after fetching it again from the browser.
With a netscape style cookie file passed in as --cookie-file , the httpx library can update the new cookies received from every request and the cookie file acts as a cookie jar.
This feature works great in yt-dlp and the login cookies passed in never expires because it is being updated by yt-dlp.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This is very important for automation use cases.
So imagine I want to send a POST request to an authenticated endpoint. I need to include a certain cookie with an ACCESS_TOKEN
You can do it manually but that ACCESS_TOKEN will expire and need to be updated again after fetching it again from the browser.
With a netscape style cookie file passed in as
--cookie-file
, the httpx library can update the new cookies received from every request and the cookie file acts as a cookie jar.This feature works great in
yt-dlp
and the login cookies passed in never expires because it is being updated by yt-dlp.Beta Was this translation helpful? Give feedback.
All reactions