09-17-2018 04:51 PM
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
Solved! Go to Solution.
09-17-2018 05:57 PM
This link should help:
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\""
09-18-2018 11:51 AM
Thanks jiggawax!
tstand