curl -x pr.lunaproxy.com:12233 myip.lunaproxy.io
Dashboard
Local Time Zone
Account
My News
Identity Authentication
EN
Dashboard
Local Time Zone
Account
My News
Identity Authentication
Dashboard
Proxy Setting
Local Time Zone
Account
My News
Identity Authentication
Proxies
Scraping Automation
Proxy Setting
Promotion
Data for AI
Proxies
Scraping Automation
Proxy Setting
Promotion
curl -x pr.lunaproxy.com:12233 myip.lunaproxy.io
import requests mainUrl = "http://myip.lunaproxy.io/" def testUrl(): entry = 'http://{}:{}@ip:port'.format("username", "password") proxy = { 'http': entry, 'https': entry, } try: res = requests.get(mainUrl, proxies=proxy, timeout=10) print(res.status_code, res.text) except Exception as e: print("error", e) pass testUrl()
import fetch from 'node-fetch'; import createHttpsProxyAgent from 'https-proxy-agent' const proxy = 'ip:port' const agent = createHttpsProxyAgent( `http://@${proxy}` ); const response = await fetch('http://myip.lunaproxy.io', { method: 'get', agent: agent, }); console.log(await response.text());
<?php $proxy = 'ip:port'; $query = curl_init('http://myip.lunaproxy.io'); curl_setopt($query, CURLOPT_RETURNTRANSFER, 1); curl_setopt($query, CURLOPT_PROXY, "http://$proxy"); $output = curl_exec($query); curl_close($query); if ($output) echo $output; ?>
package main import ( "fmt" "io/ioutil" "net/http" "net/url" ) func main() { const proxy = "ip:port" proxyUrl, _ := url.Parse( fmt.Sprintf( "http://%s:%s@%s", proxy, ), ) client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}} request, _ := http.NewRequest("GET", "http://myip.lunaproxy.io", nil, ) response, err := client.Do(request) if err != nil { fmt.Println(err) return } responseText, _ := ioutil.ReadAll(response.Body) fmt.Println(string(responseText)) }
package example; import org.apache.http.HttpHost; import org.apache.http.client.fluent.*; public class Main { public static void main(String[] args) throws Exception { String proxyHost = "pr.lunaproxy.com"; int proxyPort = 12233; HttpHost entry = new HttpHost(proxyHost, proxyPort); String query = Executor.newInstance() .execute( Request.Get("http://myip.lunaproxy.io") .viaProxy(entry) ) .returnContent() .asString(); System.out.println(query); } }
using System; using System.Net; class Example { static void Main() { var proxy = "ip:port"; var client = new WebClient(); client.Proxy = new WebProxy(proxy); Console.WriteLine( client.DownloadString("http://myip.lunaproxy.io") ); } }
curl -x pr.lunaproxy.com:12233 -U "customer-USER:PASS" http://myip.lunaproxy.io
import requests mainUrl = "http://myip.lunaproxy.io/" def testUrl(): entry = 'http://{}:{}@ip:port'.format("username", "password") proxy = { 'http': entry, 'https': entry, } try: res = requests.get(mainUrl, proxies=proxy, timeout=10) print(res.status_code, res.text) except Exception as e: print("error", e) pass testUrl()
import fetch from 'node-fetch'; import createHttpsProxyAgent from 'https-proxy-agent' const username = 'customer-USER'; const password = 'PASS'; const proxy = 'ip:port' const agent = createHttpsProxyAgent( `http://${username}:${password}@${proxy}` ); const response = await fetch('http://myip.lunaproxy.io', { method: 'get', agent: agent, }); console.log(await response.text());
<?php $username = 'customer-USER'; $password = 'PASS'; $proxy = 'ip:port'; $query = curl_init('http://myip.lunaproxy.io'); curl_setopt($query, CURLOPT_RETURNTRANSFER, 1); curl_setopt($query, CURLOPT_PROXY, "http://$proxy"); curl_setopt($query, CURLOPT_PROXYUSERPWD, "$username:$password"); $output = curl_exec($query); curl_close($query); if ($output) echo $output; ?>
package main import ( "fmt" "io/ioutil" "net/http" "net/url" ) func main() { const username = "customer-USER" const password = "PASS" const proxy = "ip:port" proxyUrl, _ := url.Parse( fmt.Sprintf( "http://%s:%s@%s", username, password, proxy, ), ) client := &http.Client{Transport: &http.Transport{Proxy: http.ProxyURL(proxyUrl)}} request, _ := http.NewRequest("GET", "http://myip.lunaproxy.io", nil, ) request.SetBasicAuth(username, password) response, err := client.Do(request) if err != nil { fmt.Println(err) return } responseText, _ := ioutil.ReadAll(response.Body) fmt.Println(string(responseText)) }
package example; import org.apache.http.HttpHost; import org.apache.http.client.fluent.*; public class Main { public static void main(String[] args) throws Exception { String username = "customer-USER"; String password = "PASS"; String proxyHost = "pr.lunaproxy.com"; int proxyPort = 12233; HttpHost entry = new HttpHost(proxyHost, proxyPort); String query = Executor.newInstance() .auth(entry, username, password) .execute( Request.Get("http://myip.lunaproxy.io") .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.lunaproxy.io") ); } }
For your payment security, please verify