ThePoShWolf/Curl2PS

Powershell equvalent of Curl -F

Opened this issue · 2 comments

Curl command is not converted to powershell

curl command

curl -qgsSkH "Content-Type: multipart/form-data"
--no-progress-bar
--header "X-FeApi-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
-F "filename=@cygdrive/c/tmp/test.txt"
-F "options={"application":"2","timeout":"500","priority":"0",
"profiles":["win7-sp1"],"analysistype":"1","force":"true",
"prefetch":"0", "properties":{"application_context":{"file_
name":"xyz.pdf"}}}"
https://xxx.xxx.xxx.xxx:443/wsapis/v2.0.0/submissions

Expected Behavior

Not Working

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

> $PSVersionTable
> Get-Module Curl2PS

Has anyone figure this converstion yet?

Hey guys, I'll be looking at implementing this. It is possible to do multipart forms with PowerShell.