set timeout length for CURL request method