#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
* - update to 1.4.1dinoex2010-03-281-1/+1
* - update to jpeg-8dinoex2010-02-051-1/+1
* bump PORTREVISION for the recent update ofoliver2010-01-101-1/+1
* - bump all port that indirectly depends on libjpeg and have not yet been bump...dinoex2009-07-311-0/+1
* update xfce to 4.6.1oliver2009-05-063-6/+6
* update Xfce to 4.6oliver2009-03-033-124/+172
* update xfce to 4.4.3oliver2008-10-313-5/+10
* Bump portrevision due to upgrade of devel/gettext.edwin2008-06-061-1/+1
* - Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORGmiwi2008-03-241-2/+0
* update xfce4 to 4.4.2oliver2008-02-138-152/+7
* fix a problem with gtk 2.12 which caused the wm to freezeoliver2007-10-266-1/+148
* - Fix a typo in bsd.sites.mk along with all the places it affectedsat2007-10-261-1/+1
* add an optional patch which reverses the mouse workspace changingoliver2007-06-193-3/+23
* - Welcome X.org 7.2 \o/.flz2007-05-201-0/+1
* update xfce to 4.4.1oliver2007-04-122-5/+7
* Switch to using new files Mk/bsd.ocaml.mk [1] and Mk/bsd.xfce.mk [2].linimon2007-03-141-1/+0
* fix objformat problem more properlyoliver2007-02-061-1/+3
* fix build (by using libtool:15) with recent CURRENTs where objformat went awayoliver2007-02-041-0/+1
* enhance the descriptionoliver2007-01-291-2/+9
* Import xfce 4.4oliver2007-01-234-469/+1005
* Chase the GNOME X11BASE to LOCALBASE move, and fix the build with themarcus2006-10-142-8/+35
* fix MASTER_SITESoliver2006-04-031-1/+0
* Conversion to a single libtool environment.ade2006-02-232-2/+6
* Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-26/+26
* Remove trailing spacesedwin2005-12-271-1/+1
* update to 4.2.3.2oliver2005-11-182-3/+4
* Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1
* update to xfce 4.2.3.1oliver2005-11-093-4/+19
* Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-1/+1