change curl call to uri module