Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cURL does not work well for Windows #1

Open
kevinlinxc opened this issue Aug 20, 2021 · 1 comment
Open

cURL does not work well for Windows #1

kevinlinxc opened this issue Aug 20, 2021 · 1 comment

Comments

@kevinlinxc
Copy link

The \ character is ^ in windows, and replacing it yields "provided data is invalid json" also

@kevinlinxc
Copy link
Author

The following in a bash script worked for me, and might be more portable across platforms:

#!/usr/bin/env bash
curl --netrc -X PATCH https://api.heroku.com/apps/<APP_NAME>/formation \
  -d '{
  "updates": [
    {
      "type": "web",
      "docker_image": "<IMAGE_ID>"
    }
  ]
}' \
  -H "Content-Type: application/json" \
  -H "Accept: application/vnd.heroku+json; version=3.docker-releases"\
  -H "Authorization: Bearer <API_KEY>"

$SHELL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant