<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>CURL on Lin's Blog</title><link>http://coder.tw/tags/curl/</link><description>Recent content in CURL on Lin's Blog</description><generator>Hugo</generator><language>zh-tw</language><lastBuildDate>Wed, 04 Jan 2017 11:58:44 +0000</lastBuildDate><atom:link href="http://coder.tw/tags/curl/index.xml" rel="self" type="application/rss+xml"/><item><title>如何測試網站是否成功設定 CORS</title><link>http://coder.tw/posts/test-cors-enabled-on-website/</link><pubDate>Wed, 04 Jan 2017 11:58:44 +0000</pubDate><guid>http://coder.tw/posts/test-cors-enabled-on-website/</guid><description>&lt;p&gt;透過 Cross-Origin Resource Sharing（以下簡稱 CORS）的設定可以讓 JavaScript 突破瀏覽器同源政策，存取不同網域的資源（API），但每次設定完 CORS 都很頭痛要如何判斷伺服器真的有設定成功，因為有時候瀏覽器針對 CORS 會做快取，導致伺服器設定無誤，但不管你怎麼重新整理網頁都失敗的現象。這邊教大家用 cURL 直接檢視 header 是否有啟用 CORS 囉！&lt;/p&gt;</description></item><item><title>Use the ClientLogin 取得存取Google Account帳戶的權限</title><link>http://coder.tw/posts/use-clientlogin-google-account/</link><pubDate>Sat, 30 Apr 2011 20:49:46 +0000</pubDate><guid>http://coder.tw/posts/use-clientlogin-google-account/</guid><description>&lt;p&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-30_200036.jpg"&gt;&lt;img class="size-full wp-image-435 aligncenter" title="2011-04-30_200036" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/04/2011-04-30_200036.jpg" alt="" width="507" height="453" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Google有提供很多的API方便妳去存取他們的服務，例如Google Contacts API就需要先取得權限才能使用，而在這篇文章中要教的ClientLogin是我個人覺得最簡單的一種取得權限方式，它的運作原理很簡單，就是透過http傳送帳號、密碼給Google，然後Google就會送回一串資料，其中就包含了授權碼，透過授權碼妳就可以去存取Google的各項服務（例如聯絡人、日曆、筆記本等等）&lt;/p&gt;</description></item><item><title>【PHP】使用curl-lib取得無名/Yam音樂的真實下載位址</title><link>http://coder.tw/posts/php-curl-get-yam-music-download-url-2/</link><pubDate>Tue, 25 Jan 2011 18:31:04 +0000</pubDate><guid>http://coder.tw/posts/php-curl-get-yam-music-download-url-2/</guid><description>&lt;p style="text-align: center;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;a href="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/01/2011-01-25_182313.jpg"&gt;&lt;img class="size-large wp-image-4437 aligncenter" title="2011-01-25_182313" src="https://pub-6c026d2742d14927bfa2d850c31eac91.r2.dev/wp-content/uploads/2011/01/2011-01-25_182313-520x356.jpg" alt="" width="520" height="356" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p style="text-align: center;"&gt;我設計的UI很簡潔^^&lt;/p&gt;
其實&lt;strong&gt;取得無名/Yam音樂的真實下載位址&lt;/strong&gt;這個程式最原本是要做成自動產生部落格音樂語法的程式,可是後來發現現在已經很多人在經營音樂語法產生器,不差我這一個,所以就不想做就把它的程式碼釋放出來給大家看看～ 另外如果有人需要透過Yam或無名下載音樂的話也可以自己把這程式下載下去,然後裝到自己的伺服器裡面run</description></item></channel></rss>