Sun Java System Web Server 7.0 Update 3 NSAPI Developer's Guide

protocol_uri2url() Function

The protocol_uri2url function takes strings containing the given URI prefix and URI suffix, and creates a newly allocated, fully qualified URL in the form http://(server):(port)(prefix)(suffix). Also see protocol_uri2url_dynamic.

If you want to omit either the URI prefix or suffix, use "" instead of NULL as the value for either parameter.

Syntax

char *protocol_uri2url(char *prefix, char *suffix);

Return Values

A new string containing the URL.

Parameters

char *prefix is the prefix.

char *suffix is the suffix.

See Also

pblock_nvinsert() Function, protocol_start_response() Function, protocol_status() Function, protocol_uri2url_dynamic() Function