ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to propely build an argument expression to send a cURL command on teststand

Solved!
Go to solution

Hi everyone,

I am using curl to send a command on teststand, but not able to get the proper argument expression:

 

This is the command I need to send:

curl.exe -w "%{http_code}" -H "Expect:\n\nContent-Type: multipart/form-data" -X POST -F upfile=@"Filename" "IP address/VIMS/deb-bin/PA_coUload.cfg"

 

 

I have tried this:

" -w \"%{http_code}" -H " + \"Expect:\n\nContent-Type: multipart/form-data" -X " + "POST -F upfile=@\"Filename " + Parameters.UUT_IP + \"//VIMS/deb-bin/PA_coUload.cfg""

 

But it gives me many errors.

 

Could someone provide some guidelines to send above command correctly.

 

Thanks,

 

tstand

 

0 Kudos
Message 1 of 3
(2,723 Views)
Solution
Accepted by topic author tstand

This link should help:

https://zone.ni.com/reference/en-XX/help/370052R-01/tsfundamentals/infotopics/special_string_charact...

 

My guess is this but I can't try it right now:

"curl.exe -w \"%{http_code}\" -H \"Expect:\\n\\nContent-Type: multipart/form-data\" -X POST -F upfile=@\"Filename\" \"IP address/VIMS/deb-bin/PA_coUload.cfg\""

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(2,711 Views)

Thanks jiggawax!

tstand

0 Kudos
Message 3 of 3
(2,687 Views)