ThePoShWolf/Curl2PS

Error: "Unknown parameter: 'ksX'. Cannot continue."

Closed this issue · 4 comments

curl command

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

> $PSVersionTable
> Get-Module Curl2PS

When I tried to use Curl2PS to convert a curl command which is something like "curl -ksX ......", it gave me an errro.

Hi @XiyongZhang, can you provide the full curl command? Sanitized, of course.

It looks to me like -ksX is combining -k (--insecure), -s (--silent), and -X (--request). If that is the case, -ksX should be followed by the request method.

Also, if that is the case, then Curl2PS does not support this currently. It can certainly be done though.

Ah, from the man pages:

Short version options that don't need any additional values can
be used immediately next to each other, like for example you can
specify all the options -O, -L and -v at once as -OLv.

v0.1.1 has been release that address the parameters that you reported on. Thanks for submitting the issue!