ua_get_url - get user-agent base url#
-
const char *ua_get_url(struct user_agent *ua)#
Get the request url.
- Parameters:
ua – the User-Agent handle created with ua_init()
- Returns:
the request url set with ua_set_url()
Example#
struct user_agent *ua = ua_init(NULL);
ua_set_url(ua, "https://www.example.com");
/* should print https://www.example.com */
printf("Base URL: %s\n", ua_get_url(ua));