Added curl option

Localhost don't work.
$curl = false in line 48 fixes