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>.”

Get Apache: The Definitive Guide, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.