Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Patches: improved URI handling: msg#00083

apache.apr.devel

Subject: Patches: improved URI handling


I've just hacked a couple of patches that fill gaps in Apache's
URI manipulation, sufficient to construct HTTP requests for external
resources. May I submit these for inclusion?

It's mainly an APR patch, but it's also a small httpd patch to fill
a parsed_uri from information in a request_rec

Here are the additional function definitions in the Header files:

1. httpd patch to protocol:

/**
* fill_parsed_uri: fill in fields available in request that parse_uri
* may have left null. Saves making too many special cases when
* using the parsed_uri.
* @param r The current request
* @deffunc void ap_parse_uri(request_rec *r, const char *uri)
*/
AP_CORE_DECLARE(void) ap_fill_parsed_uri(request_rec *r) ;


2. apr-util patch to apr_uri

/**
* Resolve an already-initialised but possibly-relative URL
* against a given base URL.
* @param p The pool to allocate out of
* @param base The base to resolve against
* @param uptr The apr_uri_t to resolve
* @return An HTTP status code
*/
APU_DECLARE(int) apr_uri_resolve_relative(apr_pool_t *p,
const apr_uri_t *base,
apr_uri_t *uptr);

/**
* Parse a given URI, fill in all supplied fields of a apr_uri_t struct.
* If the given URI is relative, then resolve it using a supplied base
* @param p The pool to allocate out of
* @param base The base to resolve against
* @param uri The uri to parse
* @param uptr The apr_uri_t to fill out
* @return An HTTP status code
*/
APU_DECLARE(int) apr_uri_parse_relative(apr_pool_t *p,
const apr_uri_t *base,
const char* uri,
apr_uri_t* uptr);


--
Nick Kew



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
ide.eclipse.wtp...    bug-tracking.ro...    xfree86.cvs/200...    lisp.wxcl.devel...    file-systems.ar...    kde.devel.kwrit...    jakarta.jetspee...    qnx.openqnx.dev...    drivers.openib/...    ports.xbox.deve...    gis.gdal.devel/...    netbsd.ports.ma...    ubuntu.marketin...    systemtap/2005-...    web.omniweb/200...    mail.qmail.ldap...    hardware.soekri...    os.netbsd.devel...    audio.madman.ge...    tv.freeguide-tv...    cluster.openmos...    education.ezpro...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation