Running cURL on 64-bit Windows

I'm new to cURL, just installed it, but it looks like it only does what it feels. I am using the 64-bit version that I got from here: http://curl.haxx.se/latest.cgi?curl=win64-ssl-sspi with installation instructions. I found here: http://guides.instructure.com/m/4214/l/83393-how-do-i-install-and-use-curl-on-a-windows-machine . With a new Powershell window open, I can use a simple GET request:

curl http://localhost:3000 

but if I run POST

 curl -d "hello world" http://localhost:3000 

he tells me "Invoke-WebRequest: the parameter cannot be processed because the parameter name" d "is ambiguous. Possible matches include: -DisableKeepAlive -Debug."

Trying to get help, I type

 curl -h or curl --help 

gives me "Invoke-WebRequest: Missing argument for the Headers parameter. Specify a parameter of type" System.Collections.IDictionary "and try again."

As I mentioned, I am new to cURL, but it seems strange that it can receive requests, but nothing more. Any ideas what I'm doing wrong?

Windows 7 64 bit Powershell 4 Version

+20
windows curl powershell
Jul 30 '14 at 18:12
source share
1 answer

Your problem is that you are not using the installed Curl , but a CmdLet called Invoke-WebRequest .

Just do:

 Remove-item alias:curl 

And check your curl again, and then save it in your profile.

The explanation is that it contains its own alias for Invoke-WebRequest , which is CmdLet, which should provide some kind of curls.

+56
Jul 30 '14 at 19:19
source share



All Articles