Name

ap_is_url — checks whether a string is in fact a URL

Synopsis

int ap_is_url(const char *url)

Returns nonzero if url is a URL. A URL is defined, for this purpose, to be “<any string of numbers, letters, +, -, or . (dot)>:<anything>.”