مرجع سريع

ورقة غش عميل HTTP التفاعلي HTTPie CLI

دليل مرجعي سريع لأداة HTTPie في سطر الأوامر: إرسال طلبات GET/POST، حمولات JSON، بيانات النماذج، الترويسات المخصصة، المصادقة، والتنزيل.

· تاريخ النشر

HTTPie هي أداة عميل HTTP بسيطة وبديهية لسطر الأوامر تدعم JSON بشكل أصلي مع تلوين الصياغة وحفظ الجلسات.

الأوامر الأساسية وبنية الطلبات (Commands & Syntax)

http GET api.example.com/users
http POST api.example.com/users name="John Doe" email="[email protected]"
http PUT api.example.com/users/1 status="active"
http DELETE api.example.com/users/1
Syntax Role Example
field=value String field (JSON / form) name="Alice"
field:=raw_json Typed JSON (int, bool) age:=30 active:=true
Header:Value HTTP Request Header Authorization:"Bearer tok"
param==value URL Query Parameter limit==10 page==2
field@file Embed / upload file [email protected]

المصادقة وتنسيق المخرجات والتنزيل

# Authentication
http -a username:password api.example.com/protected
http -A bearer -a secret_token api.example.com/data

# Output Formatting & Downloads
http -v api.example.com/users          # Full headers and body
http -h api.example.com/users          # Headers only
http -b api.example.com/users          # Body only
http -d api.example.com/archive.zip    # Download with progress bar
http -o myfile.tar.gz api.example.com/file

أوراق غش ذات صلة

موضوعات ذات صلة