From 86144c68e3f4f434754d115f10a4747b58617370 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rokas=20Vi=C5=A1inskas?= Date: Thu, 21 Dec 2023 18:39:06 +0200 Subject: [PATCH] Update 04-containers/rest-test.cmd (#248) The existing curl command is missing the http method argument '-X'. This causes the error: "curl: (6) Could not resolve host: POST" --- 04-containers/rest-test.cmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/04-containers/rest-test.cmd b/04-containers/rest-test.cmd index c684b90e..0f69256d 100644 --- a/04-containers/rest-test.cmd +++ b/04-containers/rest-test.cmd @@ -1 +1 @@ -curl POST "http://: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.'}]}" \ No newline at end of file +curl -X POST "http://: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.'}]}"