Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

curl is not recognized as an internal or external command?

Tags:

curl

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?

like image 974
Run Avatar asked Feb 15 '23 01:02

Run


2 Answers

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

like image 125
Raj Avatar answered Apr 07 '23 07:04

Raj


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"

like image 23
Hassan Saeed Avatar answered Apr 07 '23 07:04

Hassan Saeed