0

My workstation is Windows, so I use Git Bash as a shell. This command:

curl -X PUT --data /app/envuser/logs http://consulidc01-dev1:8500/v1/kv/voice/common/logging.path

Actually transmits a value of C:/Program Files (x86)/Git/app/envuser/logs instead of /app/envuser/logs. I've tried using --data-raw and --data-binary without success. I'm not sure if this is a curl issue or a GIT Bash issue. I want to get this working because I have a bash script that uploads all the Console properties. This is the only one not working. How can I prevent the undesired pre-pending of the Windows path?

2
  • curl certainly doesn't do that conversion. Does it help if you put quotes around the string? Oct 12, 2018 at 21:15
  • No quotes do not help. Oct 12, 2018 at 23:31

1 Answer 1

2

Solved. It was a GIT Bash issue. Before the curl command:

export MSYS_NO_PATHCONV=1

1
  • Accept your own question then
    – DarkSuniuM
    Oct 13, 2018 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.