I am having an issue with generated files from Visual Prolog...
My ultimate goal is to send http requests to fill an ElasticSearch database. The usual way would be to use cURL with a command such as
Code: Select all
curl -XGET "http://localhost:9200/someindex/_search" -H "Content-Type: application/json" -d"{ \"query\":{ \"match_all\":{}}}"
Code: Select all
Cmd = "curl -XPOST \"http://localhost:9200/someindex/_update/b-QvG3sBhb30C69Tqn7V\" -H 'Content-Type: application/json' -d 'my-update-script'",
file::writeString("path\\to\\test.bat", Cmd),
shell_api::shellExecute(nullHandle, "open", "path\\to\\test.bat", "", "", 1)
What am I missing ?
Thanks for any help, even a link to a documentation of VPcURL would be really helpful, as the writeString method is already a workaround.
Paul