- <?php
- $content = '提交内容';
- CURLOPT_POST => TRUE,
- CURLOPT_RETURNTRANSFER => TRUE,
- // 配置代理
- CURLOPT_PROXYAUTH => CURLAUTH_BASIC,
- CURLOPT_PROXY => "127.0.0.1", // 代理IP
- CURLOPT_PROXYPORT => "49389", // 代理端口
- // 关闭ssl验证
- CURLOPT_SSL_VERIFYPEER => false,
- CURLOPT_SSL_VERIFYHOST => false,
- 'Content-Type: application/json'
- ),
- CURLOPT_POSTFIELDS => $content
- ));
-
- // Send the request
-
- // Check for errors
- if ($response === FALSE) {
- }
- echo $response;
一条评论
来学习学习