cURL, HTTP/HTTPS/FTP/SFTP/SMTP gibi birçok protokol üzerinden istemci–sunucu iletişimini test etmek, API çağrıları yapmak, dosya transferi gerçekleştirmek ve güvenlik testlerinde manuel istek simülasyonu yapmak için kullanılan çok yönlü bir CLI aracıdır.
# Daha detaylı incelemek isterseniz Turkhacks Resmi Github reposundan bakabilirsiniz.
Markdown (GitHub flavored):
### Turkhacks.com | Bug Researchers Team
GitHub: https://github.com/turkhacks-com
curl GitHub: https://github.com/curl/curl
# TEMEL HTTP KULLANIMI
## Basit HTTP isteği
curl http://example.com
## HTTPS isteği
curl https://example.com
## Sadece HTTP başlıklarını göster
curl -I https://example.com
---
# DOSYA İNDİRME / KAYDETME
## Dosyayı indir (orijinal adıyla)
curl -O https://example.com/file.zip
## Dosyayı özel adla kaydet
curl -o myfile.zip https://example.com/file.zip
## Birden fazla dosya indir
curl -O https://example.com/file1.zip -O https://example.com/file2.zip
## Yanıtı HTML olarak kaydet
curl -o response.html https://example.com
---
# POST / API KULLANIMI
## Form POST isteği
curl -X POST -d "username=user&password=pass" https://example.com/login
## JSON ile POST
curl -X POST -H "Content-Type: application/json" \
-d '{"username":"user","password":"pass"}' https://example.com/api/login
## Authorization header ile istek
curl -H "Authorization: Bearer TOKEN" https://example.com/api
---
# AUTH / COOKIE / HEADER
## Basic Auth
curl -u "kullanici:parola" https://example.com/api
## Cookie ile istek
curl -b "sessionid=abcd1234" https://example.com/dashboard
## User‑Agent değiştir
curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64)" https://example.com
---
# PROXY / TIMEOUT / KONTROL
## Proxy üzerinden istek
curl -x http://proxyserver:port https://example.com
## Timeout belirleme
curl --max-time 10 https://example.com
## HTTP durum kodunu göster
curl -s -o /dev/null -w "%{http_code}" https://example.com
---
# FTP / DOSYA TRANSFER
## FTP sunucusundan dosya indir
curl -u "kullanici:parola" ftp://ftp.example.com/file.txt -o localfile.txt
# İPUÇLARI
-v parametresi detaylı debug çıktısı verir
API testlerinde -H "Content-Type: application/json" her zaman kullanılmalı
Büyük dosya transferlerinde --limit-rate bant genişliği kontrolü sağlar




