Used ocurl instead of calling curl executable.