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
//..[post]var uri =Uri.parse(url);
CookieJar cookies =awaitRequests.getStoredCookies(uri.host);
But this is brittle. The main branch already changed for that part, so the actual key I have to use for getStoredCookies is not actually stable.
Hostname makes sense at first, but if the cookie is restricted to a Path, like in this case, it gets confusing fast.
Additionally it might be nice to instead provide a way to retrieve cookies obtained by the request directly.
This whole procedure is required if you want to extract cookies for later use.
Expected behavior
Cookie is returned.
Desktop (please complete the following information):
OS: W10
requests 4.7.0
flutter 3.16.3
The text was updated successfully, but these errors were encountered:
Describe the bug
Requests.getStoredCookies
has no clear definition what to pass as URL if you want to retrieve the cookie returned from a request you just made.To Reproduce
Steps to reproduce the behavior:
Will return nothing if the cookie returned from this request is defined as
What you have to do, after reading the code:
But this is brittle. The main branch already changed for that part, so the actual key I have to use for getStoredCookies is not actually stable.
Hostname makes sense at first, but if the cookie is restricted to a Path, like in this case, it gets confusing fast.
Additionally it might be nice to instead provide a way to retrieve cookies obtained by the request directly.
This whole procedure is required if you want to extract cookies for later use.
Expected behavior
Cookie is returned.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: