cURL တွင် ပရောက်စီ အသုံးပြုနည်း (command-line syntax နှင့် debugging)
Updated:
curl command-line utility သည် သင်၏ VinaProxy ip:port:user:pass အထောက်အထားများကို အသုံးပြု၍ Linux, macOS သို့မဟုတ် Windows terminal များမှတစ်ဆင့် ပရောက်စီ အထောက်အထားစိစစ်ခြင်းကို အတည်ပြုရန်၊ HTTP response header များကို စစ်ဆေးရန်နှင့် အသွားအပြန် latency ကို စမ်းသပ်တိုင်းတာရန် အမြန်ဆုံးနည်းလမ်းဖြစ်သည်။
curl -x http://user:pass@ip:port https://vinaproxy.com/api/my-ip- 1 IP၄၀,၀၀၀ ₫
- 5+ IPs၃၅,၀၀၀ ₫
- 10+ IPs၂၅,၀၀၀ ₫
- 20+ IPs၂၅,၀၀၀ ₫
- 50+ IPs၂၅,၀၀၀ ₫
- 100+ IPs၂၅,၀၀၀ ₫
- 200+ IPs၂၅,၀၀၀ ₫
- 500+ IPs၂၅,၀၀၀ ₫
- 1000+ IPs၂၂,၀၀၀ ₫
- 2000+ IPs၂၀,၀၀၀ ₫
- 1 IP၄၀,၀၀၀ ₫
- 5+ IPs၃၅,၀၀၀ ₫
- 10+ IPs၂၅,၀၀၀ ₫
- 20+ IPs၂၅,၀၀၀ ₫
- 50+ IPs၂၅,၀၀၀ ₫
- 100+ IPs၂၅,၀၀၀ ₫
- 200+ IPs၂၅,၀၀၀ ₫
- 500+ IPs၂၅,၀၀၀ ₫
- 1000+ IPs၂၂,၀၀၀ ₫
- 2000+ IPs၂၀,၀၀၀ ₫
မရှိမဖြစ် cURL ပရောက်စီ flag များနှင့် one-liner များ
သင်၏ ပရောက်စီကို -x (--proxy) နှင့် -U (--proxy-user) တို့မှတစ်ဆင့် ထည့်သွင်းပါ၊ သို့မဟုတ် ၎င်းတို့ကို http://user:pass@ip:port URL တစ်ခုတည်းအဖြစ် ပေါင်းစပ်အသုံးပြုပါ-
| လုပ်ဆောင်ချက် | cURL Command | ပြသသောအရာ |
|---|---|---|
| ထွက်ပေါက် IP စစ်ဆေးခြင်း | curl -x http://user:pass@ip:port https://vinaproxy.com/api/my-ip | ပရောက်စီ၏ အများသုံး IPv4 ပါဝင်သော JSON ကို ပြန်ပေးသည် |
| အထောက်အထားများကို သီးခြားခွဲထားခြင်း | curl -x http://ip:port -U "user:pass" https://vinaproxy.com/api/my-ip | စကားဝှက်များတွင် အထူးသင်္ကေတများ ပါဝင်နေချိန်၌ အလုံခြုံဆုံးဖြစ်သည် |
| Header များကိုသာ စစ်ဆေးခြင်း | curl -I -x http://user:pass@ip:port https://example.com | HTTP status code နှင့် response header များကို ရယူပြသသည် |
| TTFB latency တိုင်းတာခြင်း | curl -s -o /dev/null -w "Connect:%{time_connect}s TTFB:%{time_starttransfer}s\n" -x http://user:pass@ip:port https://example.com | TCP handshake နှင့် ပထမဆုံး byte ရောက်ရှိချိန်တို့ကို တိုင်းတာသည် |
Windows PowerShell နှင့် shell script များအတွက် အထူးအကြံပြုချက်များ
- Windows PowerShell တွင်
curlသည် ပုံသေသတ်မှတ်ချက်အရInvoke-WebRequest၏ alias ဖြစ်နေသောကြောင့် စစ်မှန်သော cURL binary ကို သုံးရန် အမြဲတမ်းcurl.exe -x ...ဟု ခေါ်ယူသုံးစွဲပါ CONNECThandshake ကို စစ်ဆေးရန်နှင့်HTTP/1.1 200 Connection establishedဖြစ်ကြောင်း အတည်ပြုရန်-v(verbose) ကို ထည့်သွင်းပါ- နှေးကွေးသော target များကြောင့် သင်၏ pipeline ရပ်တန့်မသွားစေရန် cronjob များနှင့် shell script များတွင်
--connect-timeout 5 --max-time 15ကို ထည့်သွင်းပါ curlအသုံးပြုမှုအားလုံးအတွက် မူလပရောက်စီအဖြစ် သတ်မှတ်လိုပါက~/.curlrcထဲတွင်proxy = "http://user:pass@ip:port"ကို သိမ်းဆည်းထားပါ
အဆင့်ဆင့် လုပ်ဆောင်ရန်
- 1
သင်၏ terminal (သို့မဟုတ် Windows ရှိ cmd / PowerShell) ကို ဖွင့်ပါ
Windows PowerShell အတွင်း၌ ရှိနေပါက
curl.exeဟု ရိုက်ထည့်ရန် သတိပြုပါ။ - 2
သင်၏ ပရောက်စီမှတစ်ဆင့် စမ်းသပ် request တစ်ခုကို run ပါ
သင်၏ VinaProxy အထောက်အထားများကို အသုံးပြု၍
curl.exe -x http://user:pass@ip:port https://vinaproxy.com/api/my-ipကို execute လုပ်ပါ။ - 3
လိုအပ်ပါက handshake header များကို -v ဖြင့် debug လုပ်ပါ
Proxy-Authorizationheader နှင့် TLS handshake ကို စစ်ဆေးရန်-vကို နောက်ဆက်တွဲ ထည့်သွင်းပါ။ - 4
Production script များတွင် timeout ကာကွယ်မှုများကို ထည့်သွင်းပါ
အလိုအလျောက် shell script များတွင်
--connect-timeout 5 --max-time 15ကို ထည့်သွင်းပေးပါ။
မကြာခဏမေးလေ့ရှိသော မေးခွန်းများ
Windows PowerShell တွင် `curl -x` သည် parameter error ဖြင့် အဘယ်ကြောင့် မအောင်မြင်ရသနည်း။
PowerShell သည် curl ကို Invoke-WebRequest သို့ alias ပေးထားသောကြောင့် ဖြစ်သည်။ မူရင်း cURL ကို ခေါ်ယူရန် .exe တိုးချဲ့မှုပါသော curl.exe -x http://user:pass@ip:port ... ကို run ပါ။
`curl -v` တွင် `HTTP/1.1 407 Proxy Authentication Required` ဆိုသည်မှာ အဘယ်အရာကို ဆိုလိုသနည်း။
ယင်းမှာ cURL သည် ပရောက်စီဆာဗာ IP နှင့် port သို့ ချိတ်ဆက်နိုင်ခဲ့သော်လည်း -x သို့မဟုတ် -U သို့ ပေးပို့ထားသော username သို့မဟုတ် password မှာ မမှန်ကန်ကြောင်း ဆိုလိုသည်။
cURL ကို loop ပတ်မ run ဘဲ ပရောက်စီ အများအပြားကို စမ်းသပ်နိုင်ပါသလား။
စမ်းသပ်နိုင်ပါသည်—ကျွန်ုပ်တို့၏ ဝဘ်အခြေပြု Proxy Checker သို့မဟုတ် Proxy Speed Test ထဲသို့ ပရောက်စီ 100 အထိ paste လုပ်ကာ စစ်ဆေးနိုင်ပါသည်။
cURL နှင့် CLI tool များအတွက် latency နည်းပါးသော HTTP(S) ပရောက်စီများကို ရယူပါ
နိုင်ငံပေါင်း 7 နိုင်ငံရှိ လက်ငင်း Dedicated IPv4 နှင့် Static ISP အထောက်အထားများ။
cURL ပရောက်စီများ ဝယ်ယူရန်