[skip ci] curl command
This commit is contained in:
1 parent
dd2262ec28
commit
bfc1439d1a
1 file changed
+4
-2
@@ -281,12 +281,14 @@ namespace HttpClient
|
|||||||
function ToCurlCommand() as string
|
function ToCurlCommand() as string
|
||||||
command = `curl "${m.BuildUrl()}"`
|
command = `curl "${m.BuildUrl()}"`
|
||||||
if m._method = "HEAD"
|
if m._method = "HEAD"
|
||||||
command += ` \\\n -I`
|
command += ` \\\n --head`
|
||||||
else if m._method <> "GET"
|
else if m._method <> "GET"
|
||||||
command += ` \\\n -X ${m._method}`
|
command += ` \\\n --request ${m._method}`
|
||||||
end if
|
end if
|
||||||
|
|
||||||
command += ` \\\n --max-time ${m._timeoutSeconds}`
|
command += ` \\\n --max-time ${m._timeoutSeconds}`
|
||||||
|
command += ` \\\n --location`
|
||||||
|
command += ` \\\n --show-error`
|
||||||
|
|
||||||
if COMPRESSION_ENABLED
|
if COMPRESSION_ENABLED
|
||||||
command += ` \\\n --compressed`
|
command += ` \\\n --compressed`
|
||||||
|
|||||||
Reference in new issue
Block a user