Merge pull request #7303 from heliclei/update-curl-test

Update curl test url
This commit is contained in:
minggo 2014-07-04 09:48:15 +08:00
commit bbf7334731
1 changed files with 2 additions and 2 deletions

View File

@ -33,13 +33,13 @@ void CurlTest::onTouchesEnded(const std::vector<Touch*>& touches, Event *event)
curl = curl_easy_init();
if (curl)
{
curl_easy_setopt(curl, CURLOPT_URL, "baidu.com");
curl_easy_setopt(curl, CURLOPT_URL, "http://webtest.cocos2d-x.org/curltest");
res = curl_easy_perform(curl);
/* always cleanup */
curl_easy_cleanup(curl);
if (res == 0)
{
_label->setString("0 response");
_label->setString("Connect successfully!");
}
else
{