Fixes #1, fixed curl_setopt wrong parameter