{"id":388,"date":"2026-06-23T21:29:43","date_gmt":"2026-06-23T21:29:43","guid":{"rendered":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/?p=388"},"modified":"2026-06-23T21:29:43","modified_gmt":"2026-06-23T21:29:43","slug":"post-istekleri-gondermek-icin-curl-nasil-kullanilir","status":"publish","type":"post","link":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/tr\/2026\/06\/23\/post-istekleri-gondermek-icin-curl-nasil-kullanilir\/","title":{"rendered":"POST istekleri g\u00f6ndermek i\u00e7in cURL nas\u0131l kullan\u0131l\u0131r"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">API&#8217;lerle ?al??an bir geli?tiriciyseniz, cURL kullanarak POST istekleri g?ndermeyi ??renmek zorunludur. U? noktalar? test etmenin, veri y?klemenin veya sunucularla etkile?im kurman?n en kolay yollar?ndan biridir ve hepsini terminalinizden yapabilirsiniz.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Bu yaz?da cURL ile POST isteklerinin nas?l g?nderilece?ini, JSON, XML, dosya ve form verilerinin nas?l iletilece?ini g?sterece?iz.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ad?m 1: cURL Kurulu mu?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">?o?u sistemde cURL zaten y?kl?d?r. Sizinkinde olup olmad???n? kontrol etmek i?in bir terminal a??n ve a?a??daki komutu ?al??t?r?n:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl --version<br><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If it\u2019s not installed, download it from&nbsp;<a class=\"\" href=\"https:\/\/curl.se\/\">curl.se<\/a>. Windows users may need Git Bash or WSL to get the best results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ad?m 2: Basit Bir POST ?ste?i<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">??te cURL ile bir POST iste?inin temel bir ?rne?i:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -X POST -d \"Hello\" https:\/\/example.com\/api<br><\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-X POST<\/code>&nbsp;= HTTP y?ntemi<\/li>\n\n\n\n<li><code>-d<\/code>&nbsp;= g?vdede g?nderdi?iniz veri<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Ad?m 3: Content-Type Ba?l?klar? Ekleyin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Sunucuya hangi t?r veriyi g?nderdi?inizi belirtmek i?in mutlaka bir&nbsp;<code>Content-Type<\/code>&nbsp;ba?l??? ekleyin:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">D?z metin i?in:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -X POST -H \"Content-Type: text\/plain\" -d \"Hello\" https:\/\/example.com\/api<br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">JSON i?in:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -X POST -H \"Content-Type: application\/json\" \\<br>  -d '{\"name\":\"Alice\",\"age\":30}' https:\/\/example.com\/api<br><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">JSON&#8217;u tek t?rnak i?ine al?n; b?ylece terminaliniz i?teki ?ift t?rnaklar nedeniyle kar??maz.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ad?m 4: XML ??eri?i G?nderme<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">API XML bekliyorsa:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -X POST -H \"Content-Type: application\/xml\" \\<br>  -d '&lt;?xml version=\"1.0\"?&gt;&lt;user&gt;&lt;name&gt;Alice&lt;\/name&gt;&lt;\/user&gt;' \\<br>  https:\/\/example.com\/api<br><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Ad?m 5: Dosyalar?&nbsp;<code>-F<\/code>&nbsp;ile Y?kleyin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Dosya y?klemek i?in (g?rseller, belgeler veya loglar gibi):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -X POST -F \"file=@\/path\/to\/file.jpg\" https:\/\/example.com\/upload<br><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Birden fazla dosya y?kleme:<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -X POST \\<br>  -F \"image1=@\/path\/to\/one.jpg\" \\<br>  -F \"image2=@\/path\/to\/two.jpg\" \\<br>  https:\/\/example.com\/upload<br><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">cURL, sizin i?in&nbsp;<code>multipart\/form-data<\/code>&nbsp;i?lemini otomatik olarak y?netir.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ad?m 6: Form Verisi G?nderme<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Klasik form tarz? g?nderimler i?in (oturum a?ma veya ileti?im formu g?nderme gibi):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -X POST -d \"username=test&amp;password=1234\" https:\/\/example.com\/login<br><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ayr?ca tekrar eden&nbsp;<code>-d<\/code>&nbsp;bayraklar?yla birden fazla form alan? g?nderebilir veya bunlar? tek bir dizede birle?tirebilirsiniz.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ad?m 7: Basic Authentication Ekleyin<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">U? nokta giri? bilgileri gerektiriyorsa&nbsp;<code>-u<\/code>&nbsp;kullan?n:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -u username:password https:\/\/example.com\/secure<br><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Bu, Base64 kodlamas? kullanarak otomatik olarak bir&nbsp;<code>Authorisation<\/code>&nbsp;ba?l??? ekler.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Residential Proxy&#8217;lerle cURL Kullan?m?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Co?rafi hedefli u? noktalar? test ediyorsan?z veya ekstra gizlilik istiyorsan?z, cURL&#8217;? bir proxy ile ?u ?ekilde kullanabilirsiniz:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>curl -x http:\/\/proxyuser:proxypass@gw.thunderproxy.net:5959 \\<br>  -X POST -d '{\"action\":\"test\"}' https:\/\/example.com\/api<br><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">At\u00a0<a href=\"https:\/\/thunderproxy.com\/\" class=\"\">Thunderproxy.com<\/a>, we provide <a href=\"https:\/\/www.thunderproxy.com\/tr\/products\/proxies\/residential-proxies\/\">residential proxies<\/a> that work perfect with cURL. This is helpful when testing websites from different locations or when you need to bypass rate limits.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Son D???nceler<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cURL is a tool for developers, system administrators and testers. It\u2019s fast and efficient &#8211; whether you are sending JSON, uploading files, or logging into protected endpoints.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you learn the basic flags (<code>-X<\/code>,&nbsp;<code>-d<\/code>,&nbsp;<code>-H<\/code>,&nbsp;<code>-F<\/code>,&nbsp;<code>-u<\/code>), you\u2019ll be comfortable to create any kind of HTTP request in seconds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>API&#8217;lerle ?al???yorsan?z, cURL kullanarak POST istekleri g?ndermeyi bilmek ?nemlidir. JSON, XML, form verileri ve dosyalar? nas?l g?nderece?inizi ??renin.<\/p>\n","protected":false},"author":1,"featured_media":79,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"meta_title":"","meta_description":"","plan_title":"","referenced_products":[],"footnotes":""},"categories":[14],"tags":[47],"class_list":["post-388","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized-tr","tag-tutorials"],"tag_slugs":["tutorials"],"meta_title":"","meta_description":"","referenced_products":[],"plan_title":"","headings":[{"level":2,"text":"Ad?m 1: cURL Kurulu mu?","id":"adm-1-curl-kurulu-mu","slug":"adm-1-curl-kurulu-mu"},{"level":2,"text":"Ad?m 2: Basit Bir POST ?ste?i","id":"adm-2-basit-bir-post-stei","slug":"adm-2-basit-bir-post-stei"},{"level":2,"text":"Ad?m 3: Content-Type Ba?l?klar? Ekleyin","id":"adm-3-content-type-balklar-ekleyin","slug":"adm-3-content-type-balklar-ekleyin"},{"level":3,"text":"D?z metin i?in:","id":"dz-metin-iin","slug":"dz-metin-iin"},{"level":3,"text":"JSON i?in:","id":"json-iin","slug":"json-iin"},{"level":2,"text":"Ad?m 4: XML ??eri?i G?nderme","id":"adm-4-xml-erii-gnderme","slug":"adm-4-xml-erii-gnderme"},{"level":2,"text":"Ad?m 5: Dosyalar?&nbsp;-F&nbsp;ile Y?kleyin","id":"adm-5-dosyalar-f-ile-ykleyin","slug":"adm-5-dosyalar-f-ile-ykleyin"},{"level":3,"text":"Birden fazla dosya y?kleme:","id":"birden-fazla-dosya-ykleme","slug":"birden-fazla-dosya-ykleme"},{"level":2,"text":"Ad?m 6: Form Verisi G?nderme","id":"adm-6-form-verisi-gnderme","slug":"adm-6-form-verisi-gnderme"},{"level":2,"text":"Ad?m 7: Basic Authentication Ekleyin","id":"adm-7-basic-authentication-ekleyin","slug":"adm-7-basic-authentication-ekleyin"},{"level":2,"text":"Residential Proxy'lerle cURL Kullan?m?","id":"residential-proxylerle-curl-kullanm","slug":"residential-proxylerle-curl-kullanm"},{"level":2,"text":"Son D???nceler","id":"son-dnceler","slug":"son-dnceler"}],"lang":"tr","translations":{"tr":388,"ru":387,"en":74,"de":389,"es":390},"pll_sync_post":[],"featured_media_src_url":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/wp-content\/uploads\/2025\/07\/pexels-fotios-photos-16129724-1024x768.jpg","_links":{"self":[{"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/posts\/388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/comments?post=388"}],"version-history":[{"count":1,"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/posts\/388\/revisions"}],"predecessor-version":[{"id":399,"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/posts\/388\/revisions\/399"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/media\/79"}],"wp:attachment":[{"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/media?parent=388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/categories?post=388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress-foccwcs4gooocs44ogwkggo0.thunderproxy.com\/index.php\/wp-json\/wp\/v2\/tags?post=388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}