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 under Windows #1

Open
mbussi opened this issue Jan 16, 2017 · 3 comments
Open

cURL under Windows #1

mbussi opened this issue Jan 16, 2017 · 3 comments

Comments

@mbussi
Copy link

mbussi commented Jan 16, 2017

cURL in Windows can be done with the following Powershell command:

Invoke-RestMethod -Method POST -Uri http://... -InFile x.json -OutFile log.txt

@BenHall
Copy link
Contributor

BenHall commented Jan 16, 2017

Invoke-RestMethod -Method POST -Uri http://localhost:8500/v1/agent/service/register -InFile register.json -OutFile log.txt

@BenHall
Copy link
Contributor

BenHall commented Jan 16, 2017

Invoke-RestMethod -Method POST -Uri http://localhost:8500/v1/agent/service/register -InFile register-v2.json -OutFile log.txt

@mjbettinson
Copy link

I found that by installing 'Git for Windows' (https://git-scm.com/download/win), this brought down Git Bash.

When I ran your register.sh scripts in Powershell, this then knew to pop open Git Bash and run them in there.

It all just seemed to work fine! Saves typing out the converted Powershell each time!

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

3 participants