Lines Matching defs:file
10 * This software is licensed as described in the file COPYING, which
16 * furnished to do so, under the terms of the COPYING file.
32 const char *file, struct CookieInfo *inc, bool newsession);
34 Inits a cookie struct to store data in a local file. This is always
634 * reading from file
848 * reading the odd netscape cookies-file format here
906 /* The file format allows the path field to remain not filled in */
947 /* For Netscape file format cookies we check prefix on the name */
1001 if(!c->running && /* read from a file */
1126 * read from a file and thus isn't "live". "live" cookies are preferred
1162 /* Only show this when NOT reading the cookies from a file */
1191 * Inits a cookie struct to read data from a local file. This is always
1193 * struct is initialized. Is file is "-" then STDIN is read.
1195 * If 'newsession' is TRUE, discard all "session cookies" on read from file.
1197 * Note that 'data' might be called as NULL pointer. If data is NULL, 'file'
1203 const char *file,
1230 if(file && *file) {
1231 if(!strcmp(file, "-"))
1234 fp = fopen(file, "rb");
1236 infof(data, "WARNING: failed to open cookie file \"%s\"", file);
1265 * after reading the file, and not on every cookie.
1586 * Formats a string for Netscape output file, w/o a newline at the end.
1619 * Writes all internally known cookies to the specified file. Specify
1620 * "-" as file name to write to stdout.
1653 "# This file was generated by libcurl! Edit at your own risk.\n\n",
1703 * If we reach here we have successfully written a cookie file so there is
1766 /* if we have a destination file for all the cookies to get dumped to */