Back to Blog

اختبار واجهات برمجة التطبيقات (API) باستخدام Postman و Proxy

عند تطوير تطبيقات الجوال أو الواجهات الخلفية (Backend)، غالباً ما تحتاج لرؤية ما يحدث "تحت الغطاء". أداة Postman توفر ميزة "Capture Requests" التي تحول جهازك إلى HTTP Proxy لالتقاط وتحليل الطلبات الصادرة من أي جهاز على الشبكة.

إعداد Postman كخادم بروكسي

لالتقاط حركة البيانات من هاتف جوال مثلاً:

  1. افتح Postman واضغط على أيقونة الستالايت (Capture Requests) في الشريط السفلي.
  2. فعل خيار Enable Proxy وحدد المنفذ (مثلاً 5555).
  3. اذهب لإعدادات الواي فاي في هاتفك، وقم بتعيين البروكسي اليدوي إلى IP جهاز الكمبيوتر ومنفذ 5555.
الآن، أي تطبيق تفتحه على الهاتف ستظهر طلباته داخل Postman مباشرة للتحليل.

إرسال الطلبات عبر بروكسي خارجي

إذا كنت تختبر API مقيد جغرافياً (Geo-restricted)، يمكنك إعداد Postman لتوجيه طلباته عبر بروكسي في دولة أخرى.


Settings -> Proxy:
☑ Add a custom proxy configuration
Proxy Type: HTTP / HTTPS
Proxy Server: 123.45.67.89
Port: 8080
Proxy Auth: On (Username/Password)
                    

تجاوز مشاكل SSL (SSL Verification)

في بيئات التطوير (Staging)، غالباً ما نستخدم شهادات موقعة ذاتياً (Self-signed). تأكد من تعطيل خيار "SSL certificate verification" في إعدادات Postman لتجنب أخطاء الاتصال عند العمل خلف بروكسي الشركة.

Disclosure: we may earn a commission if you purchase through some links.

Services Related To This Article

These offers are related to privacy, password security, and development workflows. Replace the current links with your real affiliate links through environment variables.

Default Links Need Replacement

Proton

Privacy, mail, and VPN

A strong fit for privacy-focused visitors who want VPN and secure email under one brand.

Explore Proton

Surfshark

Consumer VPN

Best on pages about geo-blocking, privacy, and public Wi-Fi protection.

Try Surfshark

NordVPN

High-converting VPN

A clear offer for users who need a paid, more durable alternative to a free proxy.

View NordVPN

1Password

Password management

The best match for password, secrets, team access, and personal security pages.

Discover 1Password

DigitalOcean

Developer cloud hosting

A strong fit for proxy setup, server, and infrastructure content aimed at developers and small teams.

Start with DigitalOcean