首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > curlx:卷曲和PHP5面向对象

curlx:卷曲和PHP5面向对象

  • 资源大小:3.96 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: php curl

资 源 简 介

Curlx Curlx is a PHP5 wrapper class for cURL functions. Examples Simplified GET request (to fetch a web page, similar to file_get_contents()) $curlx = new Curlx;$web_page = $curlx->fetch("http://example.com/"); Simplified POST request $curlx = new Curlx;$web_page = $curlx->fetch("http://example.com/", array("username" => "User", "password" => "pa55word")); Site login ``` // Imagine you"re using a social networking site on example.com, // and you want your PHP script to log in and update your profile for you. $curlx = new Curlx; // This file will be used whenever there"s cookie data to be stored or sent to the server. $curlx->cookie("my_cookie.text"); // Send a POST request containing your username and password to the login page $response = $curlx->fetch("http://example.com/login", a

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.195633s