Curl notları

04.01.2012 15:26:02

Curl Hakkında Detaylar

Kurulum
aptitude install curl


curl siteye bağlanma

temel kullanım
curl [url]http://www.xxx.com[/url]


post verisi gönderme
curl --data "rec=94287&lang=tr" [url]http://www.xxx.com/hed/red[/url]


encode edilmiş url gönderir
curl --data-urlencode "ad=Ben Husonet" [url]http://www.xxx.com[/url]


sayfa süresini görme
time curl --data "rid=94287&lang=tr" [url]http://www.xxx.com/hed/read[/url]


get verisi gönderme
curl "[url]http://www.xxx.com/hed/test.cgi?yil=1905&tus=OK[/url]"


upload
curl --form upload=@localfilename --form press=OK [URL]


put yöntemi
curl --upload-file uploadfile [url]http://www.example.com/receive.cgi[/url]


host bilgi çıktılarını asci codunda trace eder
curl --trace-ascii note.txt [url]http://www.xxx.com/[/url]


.htaccess authantication
curl --user name:password [url]http://www.xxx.com[/url]


proxy user authanticationu
curl --proxy-user proxyuser:proxypassword curl.haxx.se


referans url gönderme
curl --referer [url]http://www.example.come[/url] [url]http://www.xxx.com[/url]


User Agent Gönderme
curl --user-agent "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" [URL]


Location Yönlendirme
curl --location [url]http://www.xxx.com[/url]


Cookie oluşturma
curl --cookie "ad=Husonet" [url]http://www.xxx.com[/url]

curl --dump-header headers_and_cookies [url]http://www.xxx.com[/url]
curl --cookie stored_cookies_in_file [url]http://www.xxx.com[/url]
curl --cookie nada --location [url]http://www.xxx.com[/url]
curl --cookie cookies.txt --cookie-jar newcookies.txt  [url]http://www.xxx.com[/url]

sertifikalar
curl --cert mycert.pem [url]https://secure.xxx.com[/url]


host bilgilerini alma
url --header "Host:" [url]http://www.example.com[/url]


Detaylar ve Kaynak: http://curl.haxx.se/docs/httpscripting.html [curl.haxx.se]
yazar husonet

Yorumlar

Bu içerik için sizde yorum yapabilirsiniz!
anasayfa | makaleler | haberler | dosyalar | linkler | hakkımızda