• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/apache-793/httpd/modules/mappers/

Lines Matching +refs:url +refs:cookie +refs:parse +refs:file

2  * contributor license agreements.  See the NOTICE file distributed with
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
203 /* max cookie size in rfc 2109 */
204 /* XXX: not used at all. We should do a check somewhere and/or cut the cookie */
255 apr_file_t *fpin; /* in file pointer for program maps */
256 apr_file_t *fpout; /* out file pointer for program maps */
257 apr_file_t *fperr; /* err file pointer for program maps */
263 NULL if only one file */
315 data_item *cookie; /* added cookies */
791 char *portp, *host, *url, *scratch;
810 url = r->filename + (cp - scratch);
811 if (!*url) {
812 url = "/";
819 url = r->filename + (cp - scratch);
823 url = "/";
828 rewritelog((r, 3, NULL, "reduce %s -> %s", r->filename, url));
829 r->filename = apr_pstrdup(r->pool, url);
1239 static char *lookup_map_txtfile(request_rec *r, const char *file, char *key)
1246 if ((rv = apr_file_open(&fp, file, APR_READ|APR_BUFFERED, APR_OS_DEFAULT,
1250 "mod_rewrite: can't open text RewriteMap file %s", file);
1299 static char *lookup_map_dbmfile(request_rec *r, const char *file,
1308 if ((rv = apr_dbm_open_ex(&dbmfp, dbmtype, file, APR_DBM_READONLY,
1312 "mod_rewrite: can't open DBM RewriteMap %s", file);
1566 * Text file map (perhaps random)
1573 "mod_rewrite: can't access text RewriteMap file %s",
1608 * DBM file map
1614 "mod_rewrite: can't access DBM RewriteMap file %s",
1624 "file %s", s->checkfile2);
1703 * Program file map
1833 /* sigh, the user wants a file based subrequest, but
1834 * we can't do one, since we don't know what the file
2477 char *cookie;
2520 cookie = apr_pstrcat(rmain->pool,
2540 apr_table_addn(rmain->err_headers_out, "Set-Cookie", cookie);
2542 rewritelog((rmain, 5, NULL, "setting cookie '%s'", cookie));
2545 rewritelog((rmain, 5, NULL, "skipping already set cookie '%s'",
2553 static void do_expand_cookie(data_item *cookie, rewrite_ctx *ctx)
2555 while (cookie) {
2556 add_cookie(ctx->r, do_expand(cookie->data, ctx, NULL));
2557 cookie = cookie->next;
3114 "RewriteMap: file for map ", a1,
3150 const char *(*parse)(apr_pool_t *,
3193 err = parse(p, cfg, key, val);
3250 /* parse the argument line ourself
3425 || !strcasecmp(key, "ookie")) { /* cookie */
3426 data_item *cp = cfg->cookie;
3429 cp = cfg->cookie = apr_palloc(p, sizeof(*cp));
3669 /* parse the argument line ourself */
3681 newrule->cookie = NULL;
3835 /* double-check that file exists since default result is 200 */
3840 rewritelog((r, 5, NULL, "RewriteCond file (-F) check: path=%s "
3841 "-> file=%s status=%d", input, rsub->filename,
4003 /* Additionally we strip the physical path from the url to match
4097 /* expand [E=var:val] and [CO=<cookie>] */
4099 do_expand_cookie(p->cookie, ctx);
4796 * .htaccess file is called before really entering the directory, i.e.:
4905 * absolute file-system paths start with a slash.
4909 * the following assumes, that the actual url-path
5145 /* fixup after mod_proxy, so that the proxied url will not
5173 command_table, /* table of config file commands */