#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; } '/>
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* www/py-falcon: update to 1.0.0rm2016-09-242-5/+6
* Remove ${PORTSDIR}/ from dependencies, categories v, w, x, y, and z.mat2016-04-011-3/+3
* - Convert USE_PYTHON to new USES in www/mva2015-01-031-3/+2
* - Convert to autoplistmiwi2014-03-022-80/+3
* Python cleanup:rene2014-01-141-1/+1
* - rename AL2 to APACHE20 in Mk/bsd.licenses.db.mkohauer2013-12-31mit/www/zope213?h=gnome-3.24&id=0885de93d07cda62f2245735993c34776ecbf747'>- Update to 2.11.6pgollucci2010-01-183-5/+13
* - Fix a minor problem with Zope DateTime and Timezoneswxs2009-06-232-0/+84
* - Update to 2.11.3dhn2009-05-054-98/+63
* - Replace 210->211 where missed previouslypav2009-04-034-29/+18
* Add zope 2.11, a new stable branch of Zopepav2009-03-319-1757/+1325
* Reset yasi@yasi.to by request due to lack of current time to work on FreeBSD.linimon2008-09-011-1/+1