using curl to access API instead of xsltproc.