#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; } y'/>
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* Bump PORTREVISION after DESKTOP_ENTRIES updatemakc2013-01-231-1/+1
* - Update DESKTOP_ENTRIES:makc2013-01-071-10/+6
* - Convert USE_QT_VER=4 and QT_COMPONETS to USE_QT4miwi2012-06-061-2/+1
* - update png to 1.5.10dinoex2012-06-011-1/+1
* - Get Rid MD5 supportmiwi2011-03-201-1/+0
* - update to 1.4.1dinoex2010-03-281-1/+1
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-0/+1
* Reset relaxbsd@gmail.com due to maintainer-timeouts.linimon2008-03-021-1/+1
* - Change some dependencies into build only after bsd.qt.mk rev 1.3rafan2007-08-111-1/+1