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`