[curl] add test code for curl wrappder and add relocation option CURLOPT_FOLLOWLOCATION