husonet | Tarih: 04.01.2012
Curl notları
Curl Hakkında Detaylar
Kurulum
curl siteye bağlanma
temel kullanım
post verisi gönderme
encode edilmiş url gönderir
sayfa süresini görme
get verisi gönderme
upload
put yöntemi
host bilgi çıktılarını asci codunda trace eder
.htaccess authantication
proxy user authanticationu
referans url gönderme
User Agent Gönderme
Location Yönlendirme
Cookie oluşturma
sertifikalar
host bilgilerini alma
Detaylar ve Kaynak: http://curl.haxx.se/docs/httpscripting.html
aptitude install curlcurl siteye bağlanma
temel kullanım
curl http://www.xxx.compost verisi gönderme
curl --data "rec=94287&lang=tr" http://www.xxx.com/hed/redencode edilmiş url gönderir
curl --data-urlencode "ad=Ben Husonet" http://www.xxx.comsayfa süresini görme
time curl --data "rid=94287&lang=tr" http://www.xxx.com/hed/readget verisi gönderme
curl "http://www.xxx.com/hed/test.cgi?yil=1905&tus=OK"upload
curl --form upload=@localfilename --form press=OK [URL]put yöntemi
curl --upload-file uploadfile http://www.example.com/receive.cgihost bilgi çıktılarını asci codunda trace eder
curl --trace-ascii note.txt http://www.xxx.com/.htaccess authantication
curl --user name:password http://www.xxx.comproxy user authanticationu
curl --proxy-user proxyuser:proxypassword curl.haxx.sereferans url gönderme
curl --referer http://www.example.come http://www.xxx.comUser Agent Gönderme
curl --user-agent "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" [URL]Location Yönlendirme
curl --location http://www.xxx.comCookie oluşturma
curl --cookie "ad=Husonet" http://www.xxx.com
curl --dump-header headers_and_cookies http://www.xxx.com
curl --cookie stored_cookies_in_file http://www.xxx.com
curl --cookie nada --location http://www.xxx.com
curl --cookie cookies.txt --cookie-jar newcookies.txt http://www.xxx.com
sertifikalar
curl --cert mycert.pem https://secure.xxx.comhost bilgilerini alma
url --header "Host:" http://www.example.comDetaylar ve Kaynak: http://curl.haxx.se/docs/httpscripting.html