cookie_jar icon indicating copy to clipboard operation
cookie_jar copied to clipboard

A cookie manager for http requests in Dart, by which you can deal with the complex cookie policy and persist cookies easily.

Results 19 cookie_jar issues
Sort by recently updated
recently updated
newest added

``` FileSystemException: FileSystemException: Deletion failed, path = '/data/user/0/com.example.app/app_flutter/.cookies/ie0_ps1/' (OS Error: No such file or directory, errno = 2) ``` Crashed in non-app: directory_impl.dart in _Directory._delete. file_storage.dart in FileStorage.deleteAll at line...

根据 [RFC6265 4.1.2.4](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.2.4),当服务端 Set-Cookie 字段缺失 Path 时,应该使用当前页面的“目录”作为默认的 cookie 路径。也就是说,如果 URI 为 `/w/login`,那么 Cookie 的路径应该为 `/w/`。 According to [RFC6265 4.1.2.4](https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.2.4), user agent uses the "directory" of request-uri as default path if...

The `delete` and `deleteAll` functions are not in the abstract class for CookeJar, so they cannot be called from a `new CookieJar()` instance. i.e., this does not work: ```dart var...

[default_cookie_jar.dart](https://github.com/flutterchina/cookie_jar/blob/master/lib/src/default_cookie_jar.dart) 中 Path 和 Domain 的 Cookie 匹配规则存在问题: 情况一: 假设 CookieJar 中存在 Path=/docs 的 Cookie, 此时 loadForRequest(Uri.parse('http://www.mozilla.org/docsets')) 和 loadForRequest(Uri.parse('http://www.mozilla.org/fr/docs')) 都会将 Path=/docs 的 Cookie 读取出来; 情况二: 假设 CookieJar 中存在 Domain=.mozilla.org 的...

Added test for #22 (fixed [here](https://github.com/flutterchina/cookie_jar/commit/f8ca9c477b92263e4e4eb0617205f4c5efee62cc#diff-af68040730ee70be7e2ee68ed7864a336436db0c244456e3f317d8fd57240295L20))

If cookie is set for `https://sub1.domain.com` it should be also loaded for `https://sub2.domain.com` (as described in https://tools.ietf.org/html/rfc6265#section-4.1.2.3). Now DefaultCookieJar is not working this way.

I wonder if cookies are encrypted in case of PersistCookieJar or not?

It took me a while to figure this out, but the default Cookie Jar uses a static list of cookies. Two instances of the CookieJar will reuse the same memory,...