<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://jackxiang.com/post//</link>
<title><![CDATA[Does curl support Javascript or PAC (automated proxy config)?]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[WEB2.0]]></category>
<pubDate>Wed, 07 Mar 2012 08:46:20 +0000</pubDate> 
<guid>http://jackxiang.com/post//</guid> 
<description>
<![CDATA[ 
	想通过.pac文件用PHP的CURL实现代理可以吗？cURL的FAQ上明确提到这点，是不可能的，呵呵，来自：http://curl.haxx.se/docs/faq.html#Does_curl_support_Javascript_or<br/>-----------------------------------------------<br/>Many web pages do magic stuff using embedded Javascript. Curl and libcurl have no built-in support for that, so it will be treated just like any other contents.<br/><br/>.pac files are a netscape invention and are sometimes used by organizations to allow them to differentiate which proxies to use. The .pac contents is just a Javascript program that gets invoked by the browser and that returns the name of the proxy to connect to. Since curl doesn&#039;t support Javascript, it can&#039;t support .pac proxy configuration either.<br/><br/>Some workarounds usually suggested to overcome this Javascript dependency:<br/><br/>- Depending on the Javascript complexity, write up a script that<br/>translates it to another language and execute that.<br/><br/>- Read the Javascript code and rewrite the same logic in another language.<br/><br/>- Implement a Javascript interpreter, people have successfully used the<br/>Mozilla Javascript engine in the past.<br/><br/>- Ask your admins to stop this, for a static proxy setup or similar. <br/><br/>。。。<br/>Tags - <a href="http://jackxiang.com/tags/http/" rel="tag">http</a> , <a href="http://jackxiang.com/tags/%25E4%25BB%25A3%25E7%2590%2586/" rel="tag">代理</a>
]]>
</description>
</item><item>
<link>http://jackxiang.com/post//#blogcomment</link>
<title><![CDATA[[评论] Does curl support Javascript or PAC (automated proxy config)?]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://jackxiang.com/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>