curl -x 114:114:114:114 :12233 -U http://myip.top
协议多样
企业解决方案定制
48小时线下技术服务
协议多样
企业解决方案定制
48小时线下技术服务
拥有自建的分布式系统架构,覆盖300+个城市地区
覆盖全国300+城市地区的动态代理IP,支持HTTP、HTTPS、SOCKS5等多种协议,连接到省份城市位置,帮助您有效大规模公共数据采集。
覆盖全国300+城市地区的动态代理IP,支持HTTP、HTTPS、SOCKS5等多种协议,連接到省份城市位置,帮助您有效大规模公共数据采集。
curl -x 114:114:114:114 :12233 -U http://myip.top
proxyHost = "ip"
proxyPort = "port"
proxyMeta= "http://%(host)s:%(port)s" % {
"host":proxyHost,,
"port":proxyHost,
}
#pip install -U requests[socks] socks5
# proxyMeta = "socks5://%(host)s:%(port)s" % {
# "host" :proxyHost,,
# "host" :proxyHost,
#}
proxies= {
'http':': proxyMeta',
'https':': proxyMeta'
}
resp= requests.get(targetUrl,proxies=proxies,)
print resp.status_code
print resp.text
//node代理请求http
var http = require('http')
var opt = {
host :'tunnel.alicloudecs.com' ,//这里放代理服务器的ip或者域名
port :'500' , //这里放代理服务器的端口号
method :'GET', //这里是发送的方法
path : 'http://www.sdip.321174.com/' , //这里是访问的路径
}
//以下是接收数据的代码
var body = '';
var req = http.request(opt, function (res) {
console.log (Got response: " + res.statusCode");
res.on('data', function (d) {
body + = d;
}).on('end', function () {
console.log (res.headers)
console.log (body)
});
}).on('error', function (e) {
console.log ("Got error"+ e.message)
})
req.end();
// 要访问的目标页面
$ targetUrl="http://baidu.com";
// 代理服务器
$proxyServer="http":"http://ip:port";
// 隧道身份信息
$ch=curl_init ();
curl_setopt($ch, CURLOPT_URL, $targetUrl);
curl_setopt ($ch, CURLOPT_HTTPPROXYTUNNEL, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// 设置代理服务器
curl_setopt($ch, CURLOPT_PROXYTYPE, 0); //http
curl_setopt ($ch, CURLOPT_PROXYTYPE, 5); //sock5
curl_setopt($ch, CURLOPT_PROXY, $proxyServer);
// 设置隧道验证信息
curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_BASIC);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727;)");
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3 );
curl_setopt($ch, CURLOPT_TIMEOUT, 5 );
curl_setopt($ch, CURLOPT_HEADER, true );
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true );
$result =curl_exec($ch );
curl_close($ch );
var_dump($result );
func httpProxy(ip string, port int) { defer func() { if err := recover(); err != nil { fmt.Println(time.Now().Format(" 2006-01-02 15:04:05 07"), "http", "返回信息:", err) } }() urli := url.URL{} urlproxy, _ := urli.Parse(fmt.Sprintf(" http://%s:%d", ip, port)) client := &http.Client{ Transport: &http.Transport{ Proxy: http.ProxyURL(urlproxy), }, } rqt, err := http.NewRequest ("GET", testApi, nil) if err != nil{ panic(err) return } response, err :=client.Do(rqt) if err != nil { panic(err) return } defer response.Body.Close () body, err := ioutil.ReadAll(response.Body) if err != nil { panic(err) return } fmt.Println (time.Now().Format("2006-01-02 15:04:05 07"), "http", "返回信息:", string(body)) return }
import org.apache.http.HttpHost;
import org.apache.http.client.fluent.*;
public class Main {
public static void main(String[] args) throws Exception {
String proxyHost = "1.2.3.4";
int proxyPort = 2023;
HttpHost entry = new HttpHost(proxyHost, proxyPort);
String query = Executor.newInstance().execute(Request.Get("http://myip.top").viaProxy(entry)).returnContent (). asString ();
System.out.println(query);
}
}
using System;
using System.Net;
class Example
{
static void Main()
{
var username = "customer-USER";
var password = "PASS";
var proxy = "ip:port";
var client = new WebClient();
client.Proxy = new WebProxy(proxy);
client.Proxy.Credentials = new NetworkCredential(username, password);
Console.WriteLine(
client.DownloadString("http://myip.top")
);
}
}
极光代理作为企业大数据服务提供商,我们已与多家公司达成合作,针对不同企业提供相应的定制服务。 您的需求,我们会竭尽全力为您解决。
自主控制API,自定义集成到项目,脚本提供多种参数,灵活配置
根据您的业务需求,定制并发请求数,解决您多并发的烦恼
按需定制IP存活时间IP时长由您来把控
支持HTTP/HTTPS/Socks5协议
支持白名单IP验证、账号密码验证
自主控制API,自定义集成到项目,脚本提供多种参数,灵活配置
根据您的业务需求,定制并发请求数,解决您多并发的烦恼
按需定制IP存活时间IP时长由您来把控
支持HTTP/HTTPS/Socks5协议
支持白名单IP验证、账号密码验证
遍布全国的代理服务器节点为用户提供稳定可靠的代理IP服务
300
覆盖城市400000
每日可用IP80M
最高宽带毫秒级
响应时间99.99%
IP可用率加入极光合作伙伴计划,开展新业务,获取折扣、技术、资源,实现更快速成长!
我们的技术团队和专属客户经理随时准备好帮助客户