Skip to content

foxzhu/local.http.proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

local.http.proxy


要求:

###PHP示例代码:

$ch = curl_init('http://www.baidu.com/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch,CURLOPT_PROXY,'127.0.0.1:8888');//设置代理服务器

$output = curl_exec($ch);
if($output === false)
{
    echo 'Curl error: ' . curl_error($ch);
}
curl_close($ch);
echo $output;

About

基于openresty实现的http代理

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors