Example
/* if we find extra path-info, the URL was bad so tell the */
/* browser it was not found */
if (t = pblock_findval("path-info", rq->vars)) {
protocol_status(sn, rq, PROTOCOL_NOT_FOUND, NULL);
log_error(LOG_WARN, "function-name", sn, rq, "%s not found",
path);
return REQ_ABORTED;
}
See also
protocol_start_response
protocol_uri2url
The
protocol_uri2url
URI suffix, and creates a newly allocated fully qualified URL in the form
http://(server):(port)(prefix)(suffix)
If you want to omit either the URI prefix or suffix, use
value for either parameter.
Syntax
char *protocol_uri2url(char *prefix, char *suffix);
Returns
A new string containing the URL
Parameters
is the prefix.
char *prefix
is the suffix.
char *suffix
See also
protocol_start_response, protocol_status, pblock_nvinsert,
protocol_uri2url_dynamic
protocol_uri2url_dynamic
The
protocol_uri2url
URI suffix, and creates a newly-allocated fully qualified URL in the form
http://(server):(port)(prefix)(suffix)
If you want to omit either the URI prefix or suffix, use
value for either parameter.
function takes strings containing the given URI prefix and
function takes strings containing the given URI prefix and
NSAPI Functions (in Alphabetical Order)
. See
protocol_uri2url_dynamic
instead of NULL as the
""
.
instead of NULL as the
""
Chapter 5
NSAPI Function Reference
.
173