Minor corrections to cURL code