#include #include #include #include #include #include #include #include #define DEBUG_LEVEL -1 int main(int argc, char *argv[]) { if (argc !=3 ) { std::cout<<"Please run as "< "< 0) */std::cout<<"url to fetch is "< 0) std::cout << request1 << std::endl; std::ofstream outfile; outfile.open (outfilename); outfile << curlpp::options::Url(url) << std::endl; outfile.close(); } catch ( curlpp::LogicError & e ) { if (DEBUG_LEVEL > 0) std::cout << e.what() << std::endl; } catch ( curlpp::RuntimeError & e ) { if (DEBUG_LEVEL > 0) std::cout << e.what() << std::endl; } } return 0; }