Curl to prompt a User Name and Password

前端 未结 6 2012
臣服心动
臣服心动 2020-12-31 02:36

I have a password protect web folder on my site, I am fetching that folder on another domain using Curl, what I want is: when I try to open the URL it should as

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-31 03:02

    Try the following like :

    curl -su 'user' 
    

    It should prompt password for the user

提交回复
热议问题