sample code to make ios list using libcurl and pthread