Skip to content
This repository has been archived by the owner on Dec 23, 2023. It is now read-only.

Commit

Permalink
Update 04-containers/rest-test.cmd (#248)
Browse files Browse the repository at this point in the history
The existing curl command is missing the http method argument '-X'.

This causes the error:
"curl: (6) Could not resolve host: POST"
  • Loading branch information
rokvisi authored Dec 21, 2023
1 parent 9e54aeb commit 86144c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 04-containers/rest-test.cmd
Original file line number Diff line number Diff line change
@@ -1 +1 @@
curl POST "http://<your_ACI_IP_address_or_FQDN>:5000/text/analytics/v3.0/languages" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}"
curl -X POST "http://<your_ACI_IP_address_or_FQDN>:5000/text/analytics/v3.0/languages" -H "Content-Type: application/json" --data-ascii "{'documents':[{'id':1,'text':'Hello world.'},{'id':2,'text':'Salut tout le monde.'}]}"

0 comments on commit 86144c6

Please sign in to comment.