Ví dụ Tích hợp Proxy
Bắt đầu với KindProxy bằng các ngôn ngữ lập trình phổ biến và giao thức proxy.
<?php
// Cấu hình proxy cơ bản
$username = "account";
$password = "password";
$ch = curl_init("https://ipinfo.io");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_PROXY, "gw.kindproxy.com:12000");
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch, CURLOPT_PROXYUSERPWD, "$username:$password");
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo "cURL Error: " . curl_error($ch);
} else {
echo $response;
}
curl_close($ch);
?>Sẵn sàng bắt đầu sử dụng KindProxy trong dự án của bạn?
Xem Các Gói