3) string get_head(curl url):建立对url所在的host的socket连接,发送请求"head "+url.str()+""+" http/1.0\n\n",revc应答头。函数以string类型返回应答头信息。
4) int isdeadlink(curl url):调用get_head(url),查看返回的应答头中的status状态信息是否>=400,若是,则断定为死链,返加1,否则返回0。
5) string content_type(curl url):调用get_head(url),取出返回的应答头中的content-type信息,并返回此信息。