الخطوط الملاحية المنتظمة#
curl -x http://USER-cc-us:PASS@res.proxy-cyber.com:9000 https://api.ipify.org-x (أو --proxy() يأخذ البروكسي الممزوج بوثائق التفويض المدمجة.
أعلام تستحق المعرفة#
| العلم | الغرض |
|---|---|
| -x، --عنوان URL للبروكسي | البروكسي: المخطط، المستضيف، الميناء، وثائق التفويض الاختيارية |
| -U، --proxy-user user:pass | وثائق التفويض بشكل منفصل، مفيدة عندما تكون كلمة السر ذات طابع خاص |
| --proxy-basic | التحقق من هوية العميل الأساسي للقوة (الخطأ عندما تعطى كلمة السر) |
| -v | :: إظهار التبادل الشبكي للشبكة، ومدونات وضع العميل، ومقدمي الردود |
| --لا وكيل '*' | Ignore proxy environmentتغيير لهذه الدعوة |
| -w '%{time_total}\n' | طباعة التوقيت لمقارنة المخارج |
SOCKS5 و DNS البعيد#
# Hostname resolved at the exit (recommended)
curl -x socks5h://USER-cc-de:PASS@res.proxy-cyber.com:9001 https://api.ipify.org
# Hostname resolved locally, then the IP is sent to the proxy (leaks the lookup)
curl -x socks5://USER-cc-de:PASS@res.proxy-cyber.com:9001 https://api.ipify.orgمتغيرات البيئة#
أدوات تُصدّق إلى (كورل)، وكثيرون آخرون، يُشرفون http_proxy, https_proxy و no_proxy- تصديرها مرة واحدة لدورة من العمل.
export https_proxy="http://USER-cc-us:PASS@res.proxy-cyber.com:9000"
export http_proxy="$https_proxy"
export no_proxy="localhost,127.0.0.1"
curl https://api.ipify.org # proxied without -xقراءة فاشلة#
curl -v -x http://USER:WRONG@res.proxy-cyber.com:9000 https://api.ipify.org 2>&1 | grep -E "CONNECT|HTTP/1.1 4|HTTP/1.1 5"
# < HTTP/1.1 407 Proxy Authentication Required -> credentials
# < HTTP/1.1 400 Bad Request -> a username parameter is wrong
# < HTTP/1.1 502 Bad Gateway -> no exit for that location; widen itوضع على خط الشبكة يأتي من البوابة؛ وضع بعد Connection established يأتي من الوجهة. ال صفحة الأخطاء يعين كل رمز البوابة.
تدوير الجلسات في حلقة#
for i in $(seq 1 5); do
curl -s -x "http://USER-cc-us-sid-run$i-ttl-5m:PASS@res.proxy-cyber.com:9000" https://api.ipify.org
echo
done # five different United States exits, each reusable for five minutes under its idأسئلة يطرحها الناس#
هل تحتاج وحدة مكافحة الإرهاب إلى علم خاص لجهاز شرطة الأمم المتحدة للنقل عبر العميل؟
No. With an http:// proxy URL cURL issues CONNECT for https:// destinations automatically; --proxytunnel only matters for forcing a harmony on plain HTTP.
كلمة السر تحتوي على @ أو: وCURL تفشل.
مرر أوراق الاعتماد مع مستعملي الـ (U) تخطى الحدود بدلاً من دمجها في الـ (URL) أو (URL-encode)