#include "NetworkWrapper.h" #include "json.hpp" #include #include #include #include using namespace std; using namespace nlohmann; #define USER_AGENT "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.79 Safari/537.36" string vastr; string unstr; vector errdic; /// Return: -1 Failed, 0 URL broken, 1 URL ok, 2 URL unknown int CheckURL(const string& url) { string turl=url; string content; while(true) { HTTPConnection c; c.setUserAgent(USER_AGENT); c.setURL(turl); c.setDataOutputBuffer(nullptr,0); c.setSSLVerifyHost(false); c.setSSLVerifyPeer(false); //cout<<"Performing on "<()); } }while(0); if(argc==1) { while(true) { cout<<"Please input URL to check:"<