{"id":866,"date":"2015-06-08T22:34:01","date_gmt":"2015-06-09T02:34:01","guid":{"rendered":"https:\/\/2015.columbus.wordcamp.org\/?post_type=wcb_session&#038;p=866"},"modified":"2015-06-08T22:34:01","modified_gmt":"2015-06-09T02:34:01","slug":"stop-using-curl-in-wordpress-plugins","status":"publish","type":"wcb_session","link":"https:\/\/columbus.wordcamp.org\/2015\/session\/stop-using-curl-in-wordpress-plugins\/","title":{"rendered":"Stop Using cURL in WordPress Plugins"},"content":{"rendered":"<p>Web hosts are buggy and not all support cURL. WordPress has a built in API to handle HTTP requests no matter what support the web hosts offer. By using cURL in plugins you&#8217;re doing a disservice to yourself and, if the code is shared, to your users. WordPress&#8217; built in HTTP API has been around since version 2.7&#8211; about 6.5 years now. To be blunt, you should be making use of it. I&#8217;ll go over the basics and how to make both simple and complicated requests with the HTTP API so that you can finally kick cURL to the curb.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web hosts are buggy and not all support cURL. WordPress has a built in API to handle HTTP requests no matter what support the web hosts offer. By using cURL in plugins you&#8217;re doing a disservice to yourself and, if the code is shared, to your users. WordPress&#8217; built in HTTP API has been around &hellip; <a href=\"https:\/\/columbus.wordcamp.org\/2015\/session\/stop-using-curl-in-wordpress-plugins\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Stop Using cURL in WordPress Plugins<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1143304,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1437228000,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[787],"footnotes":""},"session_track":[490958],"session_category":[],"class_list":["post-866","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-f-multimedia"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5LFaW-dY","session_date_time":{"date":"July 18, 2015","time":"10:00 AM"},"session_speakers":[{"id":"787","slug":"ryan-duff","name":"Ryan Duff","link":"https:\/\/columbus.wordcamp.org\/2015\/speaker\/ryan-duff\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/users\/1143304"}],"version-history":[{"count":1,"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/866\/revisions"}],"predecessor-version":[{"id":873,"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/sessions\/866\/revisions\/873"}],"speakers":[{"embeddable":true,"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/speakers\/787"}],"wp:attachment":[{"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/media?parent=866"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/session_track?post=866"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/columbus.wordcamp.org\/2015\/wp-json\/wp\/v2\/session_category?post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}