Retrieve username, password parameters passed through curl

前端 未结 4 1361
轮回少年
轮回少年 2021-01-07 12:34

I am trying to send username and password parameters to a url using curl, and I want to retrieve them. I send the parameters to a page, like the following:

&         


        
4条回答
  •  醉酒成梦
    2021-01-07 12:57

    Some of the parameters, like CURLOPT_USERAGENT are send in the HTTP headers and can be retrieved using special globals like $_SERVER['HTTP_USER_AGENT'] (see http://www.php.net/manual/de/reserved.variables.server.php).

    Others, like CURLOPT_SSL_VERIFYPEER are only local to CURL and don't get send to the server.

提交回复
热议问题