4

C:\Users\WaQas>curl -v google.com

I have curl downloaded from here and installed it following this Q&A.

I tested it with Command Prompt as this below

C:\Users\xxx>curl -v google.com

But I get an error message printed in the Command Prompt,

`curl` is not recognized as an internal or external command.

Any idea what else should I do to make it work or what have I missed?

Community
  • 1
  • 1
Run
  • 54,938
  • 169
  • 450
  • 748
  • It could be the case that you have to add the curl command to your local path in Windows. Maybe `C:\path-to-curl-executable -v google.com` will work – Mandy Schoep Jan 18 '14 at 18:14

2 Answers2

5

you probably do not have the path set. Set the environment path (add curl executable bin to the path) and then restart the command prompt. it should work

Raj
  • 86
  • 2
  • it is set automatically as `C:\Program Files\cURL\bin` if i follow the answer from here http://stackoverflow.com/questions/8611192/curl-command-failure – Run Jan 18 '14 at 18:23
  • 4
    i unzipped the curl library i can't seem to find any executable ., – eran otzap Jan 18 '16 at 06:51
3

https://stackoverflow.com/a/43306905/6295712

try these solutions

Method 1:\

add "C:\Program Files\cURL\bin" path into system variables Path right-click My Computer and click Properties >advanced > Environment Variables enter image description here

Method 2: (if method 1 not work then)

simple open command prompt with "run as administrator"

Community
  • 1
  • 1
Hassan Saeed
  • 6,326
  • 1
  • 39
  • 37