I am trying to use CURL on a Windows device and cannot work out the correct syntax for uploading a file in a specific location, was hoping someone may have an idea.
At the moment the syntax I am trying is below;
curl --proxy-ntlm --proxy-user domain\username:password --proxy proxy.server:80 -vk 'filename=hello.txt' -F 'file=@C:\hello.txt' https://upload.site
But all I am getting back is curl: (26) couldn't open file "C:\hello.txt"
I have tried @C:\\hello.txt, @C:/hello.txt, @"C:\hello.txt" but still getting the same error.
Does anyone have any ideas where I maybe going wrong? I can't believe it should be as hard as I am making this out to be :-)
On Window 7, i got same issue. i just fix ' to "
For example:
curl --proxy-ntlm --proxy-user domain\username:password --proxy proxy.server:80 -vk "filename=hello.txt" -F "file=@C:\hello.txt" https://upload.site
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With