From bfc1439d1a6106d86d26164711ed4734e460e8df Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 12 Dec 2024 17:48:12 -0500 Subject: [PATCH] [skip ci] curl command --- playlet-lib/src/source/services/HttpClient.bs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playlet-lib/src/source/services/HttpClient.bs b/playlet-lib/src/source/services/HttpClient.bs index 70a05f62..f102498d 100644 --- a/playlet-lib/src/source/services/HttpClient.bs +++ b/playlet-lib/src/source/services/HttpClient.bs @@ -281,12 +281,14 @@ namespace HttpClient function ToCurlCommand() as string command = `curl "${m.BuildUrl()}"` if m._method = "HEAD" - command += ` \\\n -I` + command += ` \\\n --head` else if m._method <> "GET" - command += ` \\\n -X ${m._method}` + command += ` \\\n --request ${m._method}` end if command += ` \\\n --max-time ${m._timeoutSeconds}` + command += ` \\\n --location` + command += ` \\\n --show-error` if COMPRESSION_ENABLED command += ` \\\n --compressed`