Created
June 17, 2013 23:00
-
-
Save whalebot-helmsman/5801265 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int gFetch( ne_request* request | |
, const std::string& filePath | |
, const CWebSpiderOptions& options | |
, CHttpResponse& response ) | |
{ | |
//checking input params | |
if (0 == request) { | |
return kNonHttpError; | |
} | |
//working | |
if ((NE_OK != requestResult) and (NE_REDIRECT != requestResult)) { | |
return httpStatusCode; | |
} | |
//working | |
if ((not options.m_bSavePages) and (not isBodyForParse)) { | |
return httpStatusCode; | |
} | |
//working | |
if (not getBody(request, filePath, response.m_tBody)) { | |
return kNonHttpError; | |
} | |
return httpStatusCode; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment