Yerel başvuru ve yayımlanan tüm kiplerle tam paketi kurar.
install curlcurlUzak bir uç noktanın sunucunun kendisinden nasıl davrandığını görmek için
curl <url|host|me> [options]curl megeçerli ana bilgisayarni kullan
curl example.comGET isteği gönder ve durum ile gövdeyi göster
curl example.com -Iyalnızca son yanıt başlıklarını göster
curl example.com -s [file]yanıtı kaydet; belirtilmezse URL dosya adını kullan
curl example.com -X POST -d "a=1"istek gövdesi gönder
-X <method>HTTP yöntemini ayarla
-d <data>istek gövdesini ayarla; varsayılan POST
-H "Name: value"istek başlığı ekle; yinelenebilir
-u <user>gizli parola istemiyle HTTP Basic kimlik doğrulaması kullan
-c '{"name":"value"}'JSON nesnesinden çerez gönder
-s [file] | -o <file>yanıtı ana makinede kaydet
-adeğiştirmek yerine sona ekle; -s veya -o gerekir
-ison yanıt başlıklarını dahil et
-Iyalnızca son yanıt başlıklarını göster
-jyanıtı yapılandırılmış JSON olarak göster
-edit @edityanıt gövdesini metin düzenleyicide aç
-code @codeyanıt gövdesini kod düzenleyicide aç
-t [seconds]5 saniye veya 1 ile 300 arasında özel zaman aşımı kullan
-T300 saniyelik zaman aşımı kullan
-4 | -6-ryönlendirmeleri izleme
-kgüvensiz TLS sertifikasına izin ver
Yanıt için
-u <user> parolayı ayrıca ister; ancak -d ve cookie içindeki sırlar geçmişte kalabilir. TLS doğrulaması ve en fazla beş yönlendirme varsayılandır; -k doğrulamayı, -r yönlendirmeyi kapatır. PHP -4/-6
Hazırlanmış örnekleri doğrudan sayfada çalıştırın. Sonuçlar önceden hazırlanır ve tarayıcıda gösterilir; sunucuda hiçbir terminal komutu yürütülmez.
Güncel uyumlu sürümü kurun. Tüm özellikler için Base, azaltılmış paket için Minimum seçin; zaten kurulu bir modülü güncellemek için upgrade kullanın.
Base ve Minimum aynı geçerli modül sürümünün iki paketidir.
Yerel başvuru ve yayımlanan tüm kiplerle tam paketi kurar.
install curlAzaltılmış paketi kurun. Yerel başvuru dahil değildir;
install curl -mTam olarak bu yayımlanmış sürümü kurun.
install curl -v 1.2.5upgrade uyumluluğu denetler ve bloğu yalnız gerektiğinde değiştirir.
upgrade curlÇekirdeğe ve diğer modüllere dokunmadan eklenti bloğunu kaldırır.
install curl -uÖrnekler kopyalanabilir; site bunları çalıştırmaz. Yolları, izinleri ve yıkıcı seçenekleri denetleyin.
curl https://example.comÖrnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
<!doctype html>
<html>…</html>curl meÖrnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
<!doctype html>
<html>…</html>curl https://example.com -IÖrnek ağ çıktısı — gerçek istek yapılmaz
HTTP/2 200
content-type: text/html; charset=UTF-8
cache-control: max-age=86000curl https://example.com -iÖrnek ağ çıktısı — gerçek istek yapılmaz
HTTP/2 200
content-type: text/html; charset=UTF-8
<!doctype html>
<html>…</html>curl https://example.com -jÖrnek ağ çıktısı — gerçek istek yapılmaz
{
"status": 200,
"url": "https://example.com/",
"headers": [
"HTTP/2 200",
"content-type: text/html; charset=UTF-8"
],
"body": "<html>…</html>"
}curl https://example.com -X POST -d "name=lil"Örnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Example response to a POST request; the server may reject POST or return another status.curl https://example.com -d "name=lil"Örnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Example response to a POST request; the server may reject POST or return another status.curl https://example.com -H "Accept: application/json"Örnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Request contains custom headers; the remote reply depends on the endpoint.curl https://example.com -H "Accept: application/json" -H "X-Demo: 1"Örnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Request contains custom headers; the remote reply depends on the endpoint.curl https://example.com -c '{"theme":"dark"}'Örnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Request includes Cookie: theme=dark; the server decides how to respond.curl https://example.com -u demoÖrnek ağ çıktısı — gerçek istek yapılmaz
A separate secret-password prompt appears before the request is sent.curl https://example.com -sÖrnek ağ çıktısı — gerçek istek yapılmaz
sandbox/
index.html
The response body is saved on the hosting account.curl https://example.com -s tmp/example.htmlÖrnek ağ çıktısı — gerçek istek yapılmaz
sandbox/tmp/
example.html
The response body is saved on the hosting account.curl https://example.com -o tmp/example.htmlÖrnek ağ çıktısı — gerçek istek yapılmaz
sandbox/tmp/
example.html
The response body is saved on the hosting account.curl https://example.com -o tmp/example.html -aÖrnek ağ çıktısı — gerçek istek yapılmaz
sandbox/tmp/
example.html
The body is appended to the existing file.curl https://example.com -tÖrnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Timeout option changes the maximum wait, not the response format.curl https://example.com -t 2Örnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Timeout option changes the maximum wait, not the response format.curl https://example.com -TÖrnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Timeout option changes the maximum wait, not the response format.curl https://example.com -4Örnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Requested IP family IPv4 (requires PHP cURL).curl https://example.com -6Örnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Requested IP family IPv6 (requires PHP cURL).curl https://example.com -rÖrnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Redirect following disabled; response status depends on endpoint.curl https://example.com -kÖrnek ağ çıktısı — gerçek istek yapılmaz
HTTP: 200
URL: https://example.com/
Certificate verification disabled for this diagnostic request.curl https://example.com -editÖrnek ağ çıktısı — gerçek istek yapılmaz
The installed text editor opens the response in a protected temporary file.curl https://example.com -codeÖrnek ağ çıktısı — gerçek istek yapılmaz
The installed code editor opens the response in a protected temporary file.curl https://example.com -j -codeÖrnek ağ çıktısı — gerçek istek yapılmaz
The installed code editor opens the response in a protected temporary file as formatted JSON.curl https://example.com -edit -s tmp/example.htmlÖrnek ağ çıktısı — gerçek istek yapılmaz
Editor mode cannot be combined with -s or -ocurl https://example.com -aÖrnek ağ çıktısı — gerçek istek yapılmaz
Append requires an output filecurl ftp://example.comÖrnek ağ çıktısı — gerçek istek yapılmaz
Invalid URLcurl https://example.com -4 -6Örnek ağ çıktısı — gerçek istek yapılmaz
Choose either IPv4 or IPv6curl https://example.com -X 9badÖrnek ağ çıktısı — gerçek istek yapılmaz
Invalid HTTP methodcurl https://example.com -H "broken"Örnek ağ çıktısı — gerçek istek yapılmaz
Invalid headercurl https://example.com -c not-jsonÖrnek ağ çıktısı — gerçek istek yapılmaz
Invalid cookie JSONcurl https://example.com -t 301Örnek ağ çıktısı — gerçek istek yapılmaz
Invalid timeoutcurl https://example.com -oÖrnek ağ çıktısı — gerçek istek yapılmaz
Output file requiredcurl https://example.com -edit -codeÖrnek ağ çıktısı — gerçek istek yapılmaz
Choose one editor