#include int main (int argc, char **argv) { CamelURL *url; CamelException *ex; if (argc != 2) { fprintf (stderr, "Usage: test-url URL\n"); exit (1); } ex = camel_exception_new (); url = camel_url_new (argv[1], ex); if (!url) { fprintf (stderr, "Could not parse URL:\n%s", camel_exception_get_description (ex)); exit (1); } printf ("URL : %s\n\n", camel_url_to_string (url, TRUE)); printf ("Protocol: %s\n", url->protocol); if (url->user) printf ("User : %s\n", url->user); if (url->authmech) printf ("Authmech: %s\n", url->authmech); if (url->passwd) printf ("Password: %s\n", url->passwd); if (url->host) printf ("Host : %s\n", url->host); if (url->port) printf ("Port : %d\n", url->port); if (url->path) printf ("Path : %s\n", url->path); return 0; } ebsd-ports-gnome Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* - Update to 0.2.3olivierd2016-07-018-154/+19
* Convert tab after WWW: in pkg-descrs to single space as per PHBamdmi32016-05-241-1/+1
* Remove ${PORTSDIR}/ from dependencies, Mk and categories a, b, and c.mat2016-04-011-2/+2
* USES=xfce: Stop overriding MASTER_SITE_SUBDIR.bdrewery2015-04-291-2/+1
* The FreeBSD Xfce team proudly presents Xfce 4.12.olivierd2015-03-061-3/+5
* - Fix crash (use new GLib threads) [1]olivierd2015-01-116-1/+151
* Cleanup plistbapt2014-10-20