Curl2PS icon indicating copy to clipboard operation
Curl2PS copied to clipboard

Powershell equvalent of Curl -F

Open BITSDevops111 opened this issue 3 years ago • 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

BITSDevops111 avatar Apr 25 '21 17:04 BITSDevops111

Has anyone figure this converstion yet?

linuxjones avatar Jun 09 '21 03:06 linuxjones

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

ThePoShWolf avatar May 30 '22 12:05 ThePoShWolf