Query: ns_relativeurl
OS: debian
Section: 3aolserv
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Ns_Url(3aolserver) AOLserver Library Procedures Ns_Url(3aolserver) __________________________________________________________________________________________________________________________________________________NAMENs_AbsoluteUrl, Ns_ParseUrl, Ns_RelativeUrl, Ns_SkipUrl - URL manipulation routinesSYNOPSIS#include "ns.h" int Ns_AbsoluteUrl(Ns_DString *pds, char *url, char *baseurl) int Ns_ParseUrl(char *url, char **pprotocol, char **phost, char **pport, char **ppath, char **ptail) char * Ns_RelativeUrl(char *url, char *location) char * Ns_SkipUrl(Ns_Request *request, int n) _________________________________________________________________DESCRIPTIONNs_AbsoluteUrl(pds, url, baseurl) Construct an URL based on baseurl but with as many parts of the incomplete url as possible. Return NS_OK or NS_ERROR. Ns_ParseUrl(url, pprotocol, phost, pport, ppath, ptail) Parse a URL into its component parts. Pointers to the protocol, host, port, path, and "tail" (last path element) will be set by ref- erence in the passed-in pointers. The passed-in url will be modified. Ns_RelativeUrl(url, location) If the url passed in is for this server, then the initial part of the URL is stripped off. e.g., on a server whose location is http://www.foo.com, Ns_RelativeUrl of "http://www.foo.com/hello" will return "/hello". Returns a pointer to the beginning of the relative url in the passed-in url, or NULL if error. Will set errno on error. Ns_SkipUrl(request, n) Return a pointer n elements into the request's url.SEE ALSOnsd(1), info(n)KEYWORDSAOLserver 4.0 Ns_Url(3aolserver)
Related Man Pages |
---|
ns_skipurl(3aolserv) - debian |
ns_urlisdir(3aolserv) - debian |
ns_urlisfile(3aolserv) - debian |
ns_urlspecificalloc(3aolserv) - debian |
ns_urlspecificget(3aolserv) - debian |
Similar Topics in the Unix Linux Community |
---|
C snipet on char Pointers |
Splitting URL request string including escape characters |
Apache rewrite rules. |
Need some help on tomcat URL rewrite or mod_jk |
Given a url how to get last part of file |