Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Imported from: http://groups.google.com/group/in-portal-dev/browse_thread/thread/ada866ee21ac6ead#

In-Portal has kCurlHelper class to automate process of retrieving data from
other from other API's or websites, like Google Data API or RSS feeds. 

All works fine, when queried website has no errors. In case if website sends
500 sends 500 HTTP response code (error) or there will be a connection timeout to that
site, then response from kCurlHelper::Send method will be the same: *empty
string*.

Such result is not sufficient for web sites, where *empty string * means
something special response. In such cases I usually check for last HTTP code
to be 200 OK and no connection error has occurred.
In  In attached patch there is new kCurlHelper::isGoodResponce method for doing
all that.

Task:

Jira Legacy
serverIn-Portal Issue Tracker
serverId126bf1dc-b574-3522-8c14-3dd94dfb9de1
keyINP-802

<

curl_responce_checker.patch

Related Tasks

Jira Legacy
serverIn-Portal Issue TrackerSystem Jira
serverId126bf1dc513b375f-b5748291-35223313-8c149d9f-3dd94dfb9de1704c39b1f915
keyINP-802

...

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

curl_responce_checker.patch