/** * Implementation of getQueryable */ string Crawler::getQueryable(GURL url) { return url.path() + "?" + url.query(); }
void print_uri(GURL &url) { std::cout << "scheme:\t\t" << url.scheme() << "\nusername:\t" << url.username() << "\npassword:\t" << url.password() << "\nhost:\t\t" << url.host() << "\nport:\t\t" << url.port() << "\npath:\t\t" << url.path() << "\nquery:\t\t" << url.query() << "\nfragment:\t" << url.ref() << "\n\n"; }