#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; } eebsd-ports-graphics Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
2:53:14 +0800'>2009-01-03deletions'>-2/+1 10 +0800'>2008-08-20
Commit message (Expand)AuthorAgeFilesLines
* - Update to 5.15danilo2016-04-101-2/+2
* - Update to 5.14danilo2016-02-091-2/+2
* - Update to 5.13danilo2016-01-311-2/+2
* - Update to 5.12danilo2015-11-171-2/+2
* - Update to 5.11danilo2015-10-201-2/+2
* - Update to 5.10danilo2015-10-131-2/+2
* - Update to 5.9danilo2015-07-221-2/+2
* - Update to 5.8danilo2015-07-131-2/+2
* - Update to 5.6danilo2015-06-171-2/+2
* - Update to 5.5danilo2015-05-071-2/+2
* - Update to 5.4.1danilo2015-05-031-2/+2
* - Update to 5.3.1danilo2015-04-241-2/+2
* - Update to 4.25.1danilo2015-01-091-2/+2
* - Update from 4.24 to 4.25danilo2014-12-181-2/+2
* - Update from 4.23 to 4.24danilo2014-09-201-2/+2
* Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-072-1/+2
* Support CFLAGS, and install documentation.adamw2002-10-282-8/+10
2-105/+106
* Update to 2.10kevlo2008-08-195-11/+44