
Asst 4 Test Driver
#include <iostream>
#include "url.h"
// Simple test driver for the URL interface.
main()
{
// Declare the three URL variables.
url_t u1, u2, u3;
// Initialize two of them, and print the resulting URLs
init_url(u1, "www.mc.edu");
init_url(u2, "www.eff.org", "/cases//lenz-v-universal/");
cout << the_url(u1) << endl;
cout << the_url(u2) << endl;
// Initialize the third one, and perform surgery.
init_url(u3, "www.dingbat.gov", "/goober listings/crud/../alpha^beta");
cout << "\n" << the_url(u3) << endl;
ftp_url(u3);
move_url(u3, "nimrod///island/");
url_port(u3, 77);
url_creds(u3,"fred","ft#/min");
cout << the_url(u3) << endl;
}