{"id":608,"date":"2009-10-08T11:49:23","date_gmt":"2009-10-08T16:49:23","guid":{"rendered":"http:\/\/www.tigoe.net\/pcomp\/code\/?p=608"},"modified":"2010-01-19T23:34:32","modified_gmt":"2010-01-20T04:34:32","slug":"simple-client-url-example-in-php","status":"publish","type":"post","link":"https:\/\/www.tigoe.com\/pcomp\/code\/PHP\/608\/","title":{"rendered":"Simple Client URL example in PHP"},"content":{"rendered":"<p>Here&#8217;s a simple example of using the cURL program through PHP&#8217;s <a href=\"http:\/\/us.php.net\/manual\/en\/book.curl.php\">client URL library<\/a>. It&#8217;s a really powerful way to use HTTP, because you can set just about every HTTP option using the library.<\/p>\n<p><!--more--><\/p>\n<pre class=\"brush:php; light:true\">[include file=\"..\/..\/code\/php\/curlScraper.php\" clean=\"true\"]<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here&#8217;s a simple example of using the cURL program through PHP&#8217;s client URL library. It&#8217;s a really powerful way to use HTTP, because you can set just about every HTTP option using the library.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-608","post","type-post","status-publish","format-standard","hentry","category-PHP"],"_links":{"self":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/608","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/comments?post=608"}],"version-history":[{"count":6,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/608\/revisions"}],"predecessor-version":[{"id":824,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/posts\/608\/revisions\/824"}],"wp:attachment":[{"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/media?parent=608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/categories?post=608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tigoe.com\/pcomp\/code\/wp-json\/wp\/v2\/tags?post=608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}