if(i==255){fprintf(stderr,"ERROR: Got invalid status line connecting to: %s\n",uri.getHost().c_str());returnfalse;}
if(sscanf(line,"HTTP/1.1 %d",&status)!=1||status!=101){fprintf(stderr,"ERROR: Got bad status connecting to %s: %s",uri.getHost().c_str(),line);returnfalse;}