Jump to content

replicate cURL --form file=@<filepath> <URL> behavor


Recommended Posts

I think I have nailed converting every other curl command to LV native.  This one has me stumped and it should be real easy. 

cul --location -H "x-file-format: <FILE>" -H "x-campaign-name: TEST_CAMPAIGN" -H "x-session-name: TEST_SESSION" -H "x-description: DESCRIPTION" -H "x-tags: cc13,test" -H "x-notify-email: user@company.com" --form file=@/data/file.file http://URL

Also this would help on a little script that I am hoping to release at some point. Given the number of curl examples on the internet made a parser that will generate a vi from a curl example. 

 
Link to post
Share on other sites
On 10/2/2020 at 8:28 PM, Ansible said:

I think I have nailed converting every other curl command to LV native.  This one has me stumped and it should be real easy. 

cul --location -H "x-file-format: <FILE>" -H "x-campaign-name: TEST_CAMPAIGN" -H "x-session-name: TEST_SESSION" -H "x-description: DESCRIPTION" -H "x-tags: cc13,test" -H "x-notify-email: user@company.com" --form file=@/data/file.file http://URL

Also this would help on a little script that I am hoping to release at some point. Given the number of curl examples on the internet made a parser that will generate a vi from a curl example. 

 

Sorry I'm not a curl expert. So you could you explain a bit what all these parameters mean and which of them causes problems?

Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.