mod_proxy.h revision 3c59b18ce62f97468aaa5951d4e21a5478ef36ec
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb/* ====================================================================
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * The Apache Software License, Version 1.1
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * Copyright (c) 2000-2001 The Apache Software Foundation. All rights
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * reserved.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * Redistribution and use in source and binary forms, with or without
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * modification, are permitted provided that the following conditions
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * are met:
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * 1. Redistributions of source code must retain the above copyright
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * notice, this list of conditions and the following disclaimer.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * 2. Redistributions in binary form must reproduce the above copyright
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * notice, this list of conditions and the following disclaimer in
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * the documentation and/or other materials provided with the
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * distribution.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * 3. The end-user documentation included with the redistribution,
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * if any, must include the following acknowledgment:
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * "This product includes software developed by the
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * Apache Software Foundation (http://www.apache.org/)."
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * Alternately, this acknowledgment may appear in the software itself,
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * if and wherever such third-party acknowledgments normally appear.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * 4. The names "Apache" and "Apache Software Foundation" must
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * not be used to endorse or promote products derived from this
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * software without prior written permission. For written
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * permission, please contact apache@apache.org.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * 5. Products derived from this software may not be called "Apache",
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * nor may "Apache" appear in their name, without prior written
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * permission of the Apache Software Foundation.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * SUCH DAMAGE.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * ====================================================================
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * This software consists of voluntary contributions made by many
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * individuals on behalf of the Apache Software Foundation. For more
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * information on the Apache Software Foundation, please see
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * <http://www.apache.org/>.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb *
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * Portions of this software are based upon public domain software
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * originally written at the National Center for Supercomputing Applications,
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * University of Illinois, Urbana-Champaign.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb */
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#ifndef MOD_PROXY_H
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#define MOD_PROXY_H
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb/*
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb * Main include file for the Apache proxy
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb */
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb/*
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb Also note numerous FIXMEs and CHECKMEs which should be eliminated.
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb This code is once again experimental!
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb Things to do:
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb 1. Make it completely work (for FTP too)
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb 2. HTTP/1.1
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb Chuck Murcko <chuck@topsail.org> 02-06-01
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb */
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#define CORE_PRIVATE
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "apr.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "apr_compat.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "apr_lib.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "apr_strings.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "apr_buckets.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "apr_md5.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "apr_pools.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "apr_strings.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "util_filter.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "util_date.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "util_uri.h"
a2a0abd88b19e042a3eb2a9fa1702c25ad51303dwrowe#include "httpd.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "http_config.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "http_protocol.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "ap_config.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "http_log.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "http_main.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "http_core.h"
b45c1c292ff1fa635004ae81fa691f8cb3cdda85rbb#include "http_connection.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "http_vhost.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "http_request.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include "mod_core.h"
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
a2a0abd88b19e042a3eb2a9fa1702c25ad51303dwrowe
a2a0abd88b19e042a3eb2a9fa1702c25ad51303dwrowe#if APR_HAVE_NETDB_H
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include <netdb.h>
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#endif
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#if APR_HAVE_SYS_SOCKET_H
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include <sys/socket.h>
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#endif
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#if APR_HAVE_NETINET_IN_H
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include <netinet/in.h>
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#endif
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#if APR_HAVE_ARPA_INET_H
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#include <arpa/inet.h>
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb#endif
c3e342e5b0b9fea6617ee16d2da02c3ef2108126dougm
b38846b15c8891c6dec44dcc4f96ca40721bf663rbb
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewroweextern module AP_MODULE_DECLARE_DATA proxy_module;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe/* for proxy_canonenc() */
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewroweenum enctype {
c2cf53a40a9814eb91db2cdf820f97d943f21628coar enc_path, enc_search, enc_user, enc_fpath, enc_parm
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe};
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
731344ed8f3677d1661c261ca5fcdd2ee3dbc74ccoar#if APR_CHARSET_EBCDIC
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define CRLF "\r\n"
731344ed8f3677d1661c261ca5fcdd2ee3dbc74ccoar#else /*APR_CHARSET_EBCDIC*/
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define CRLF "\015\012"
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#endif /*APR_CHARSET_EBCDIC*/
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#if 0
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define DEFAULT_FTP_DATA_PORT 20
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define DEFAULT_FTP_PORT 21
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define DEFAULT_GOPHER_PORT 70
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define DEFAULT_NNTP_PORT 119
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define DEFAULT_WAIS_PORT 210
3e392a5afd51526de3cb15d57ee46d8cb160ae65gregames#define DEFAULT_HTTPS_PORT 443
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define DEFAULT_SNEWS_PORT 563
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define DEFAULT_PROSPERO_PORT 1525 /* WARNING: conflict w/Oracle */
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#define DEFAULT_CACHE_COMPLETION (0.9)
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#endif
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#if 0
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe/* Some WWW schemes and their default ports; this is basically /etc/services */
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowestruct proxy_services {
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe const char *scheme;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe int port;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe};
3e392a5afd51526de3cb15d57ee46d8cb160ae65gregames#endif
3e392a5afd51526de3cb15d57ee46d8cb160ae65gregames
3e392a5afd51526de3cb15d57ee46d8cb160ae65gregames/* static information about a remote proxy */
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowestruct proxy_remote {
731344ed8f3677d1661c261ca5fcdd2ee3dbc74ccoar const char *scheme; /* the schemes handled by this proxy, or '*' */
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe const char *protocol; /* the scheme used to talk to this proxy */
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe const char *hostname; /* the hostname of this proxy */
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe int port; /* the port for this proxy */
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe};
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowestruct proxy_alias {
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe const char *real;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe const char *fake;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe};
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowestruct dirconn_entry {
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe char *name;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe struct in_addr addr, mask;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe struct hostent *hostentry;
c2cf53a40a9814eb91db2cdf820f97d943f21628coar int (*matcher) (struct dirconn_entry * This, request_rec *r);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe};
4775dfc34c90fada8c7c4d6a57ed8a3114d55c2dtrawick
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowestruct noproxy_entry {
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe const char *name;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe struct apr_sockaddr_t *addr;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe};
731344ed8f3677d1661c261ca5fcdd2ee3dbc74ccoar
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowetypedef struct {
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe apr_array_header_t *proxies;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe apr_array_header_t *aliases;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe apr_array_header_t *raliases;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe apr_array_header_t *noproxies;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe apr_array_header_t *dirconn;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe apr_array_header_t *allowed_connect_ports;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe long id;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe const char *connectname;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe apr_port_t connectport;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe apr_socket_t *client_socket;
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe const char *domain; /* domain name to use in absence of a domain name in the request */
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe int req; /* true if proxy requests are enabled */
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe char req_set;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe enum {
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe via_off,
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe via_on,
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe via_block,
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe via_full
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe } viaopt; /* how to deal with proxy Via: headers */
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe char viaopt_set;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe size_t recv_buffer_size;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe char recv_buffer_size_set;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe} proxy_server_conf;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowestruct per_thread_data {
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe struct hostent hpbuf;
731344ed8f3677d1661c261ca5fcdd2ee3dbc74ccoar u_long ipaddr;
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe char *charpbuf[2];
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe};
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowetypedef struct {
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe float cache_completion; /* completion percentage */
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe int content_length; /* length of the content */
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe} proxy_completion;
c2cf53a40a9814eb91db2cdf820f97d943f21628coar
c2cf53a40a9814eb91db2cdf820f97d943f21628coar
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe/* Function prototypes */
c2cf53a40a9814eb91db2cdf820f97d943f21628coar
c2cf53a40a9814eb91db2cdf820f97d943f21628coar/* proxy_connect.c */
c2cf53a40a9814eb91db2cdf820f97d943f21628coar
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wroweint ap_proxy_connect_handler(request_rec *r, char *url,
c2cf53a40a9814eb91db2cdf820f97d943f21628coar const char *proxyhost, int proxyport);
c2cf53a40a9814eb91db2cdf820f97d943f21628coar
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe/* proxy_ftp.c */
c2cf53a40a9814eb91db2cdf820f97d943f21628coar
c2cf53a40a9814eb91db2cdf820f97d943f21628coarint ap_proxy_ftp_canon(request_rec *r, char *url);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarint ap_proxy_ftp_handler(request_rec *r, char *url);
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wroweapr_status_t ap_proxy_send_dir_filter(ap_filter_t *f, apr_bucket_brigade *bb, ap_input_mode_t mode);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe/* proxy_http.c */
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wroweint ap_proxy_http_canon(request_rec *r, char *url, const char *scheme,
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe int def_port);
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wroweint ap_proxy_http_handler(request_rec *r, char *url,
c2cf53a40a9814eb91db2cdf820f97d943f21628coar const char *proxyhost, int proxyport);
c2cf53a40a9814eb91db2cdf820f97d943f21628coar
c2cf53a40a9814eb91db2cdf820f97d943f21628coar/* proxy_util.c */
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe
c2cf53a40a9814eb91db2cdf820f97d943f21628coarrequest_rec *make_fake_req(conn_rec *c, request_rec *r);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarint ap_proxy_hex2c(const char *x);
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowevoid ap_proxy_c2hex(int ch, char *x);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarchar *ap_proxy_canonenc(apr_pool_t *p, const char *x, int len, enum enctype t,
c2cf53a40a9814eb91db2cdf820f97d943f21628coar int isenc);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarchar *ap_proxy_canon_netloc(apr_pool_t *p, char **const urlp, char **userp,
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wrowe char **passwordp, char **hostp, int *port);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarconst char *ap_proxy_date_canon(apr_pool_t *p, const char *x);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarapr_table_t *ap_proxy_read_headers(request_rec *r, request_rec *rp, char *buffer, int size, conn_rec *c);
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wroweint ap_proxy_liststr(const char *list, const char *val);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarchar *ap_proxy_removestr(apr_pool_t *pool, const char *list, const char *val);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarint ap_proxy_hex2sec(const char *x);
c2cf53a40a9814eb91db2cdf820f97d943f21628coarvoid ap_proxy_sec2hex(int t, char *y);
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wroweconst char *ap_proxy_host2addr(const char *host, struct hostent *reqhp);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewroweint ap_proxyerror(request_rec *r, int statuscode, const char *message);
fa06de8a28a737e8fbaad76d7f3ff67aaa5e4a09wroweint ap_proxy_is_ipaddr(struct dirconn_entry *This, apr_pool_t *p);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewroweint ap_proxy_is_domainname(struct dirconn_entry *This, apr_pool_t *p);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewroweint ap_proxy_is_hostname(struct dirconn_entry *This, apr_pool_t *p);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewroweint ap_proxy_is_word(struct dirconn_entry *This, apr_pool_t *p);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewroweint ap_proxy_checkproxyblock(request_rec *r, proxy_server_conf *conf, apr_sockaddr_t *uri_addr);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewroweint ap_proxy_pre_http_connection(conn_rec *c);
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe#endif /*MOD_PROXY_H*/
83a8dc5a596a8a1b9d14f063268287d123b9ed7ewrowe