# curl **Repository Path**: sreeb/curl ## Basic Information - **Project Name**: curl - **Description**: php链式操作curl - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-11-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # curl #### 介绍 php链式操作curl #### 软件架构 软件架构说明 #### 安装教程 ~~~ composer require sreeb/curl ~~~ #### 使用说明 ~~~ $curl = new Curl(); $data = $curl->url('https://www.baidu.com') //网址 ->post(['user' => 'admin']) //from表单形式提交post数据 // ->raw(['json'=>'json'])//raw提交json数据 ->ssl(false)//绕过证书检查 ->writeCookie('./cookie.txt')//保存返回的cookie ->redCookie('./cookie.txt')//请求携带cookie ->timeOut(1)//响应超时时间 ->connnectTimeOut(1)//链接超时时间 ->redirect(true)//获取重定向后的数据 ->gzip(true)//解压返回数据 ->request(); ~~~