added -L to curl command