0
我在使用上的URL Zend的HTTP麻煩:Zend HTTP客戶端URI無效?
$client = new Zend_Http_Client('http://xxfire_killumiex.api.channel.livestream.com/2.0/info.json');
$feed = $client->request()->getBody();
出於某種原因,這給了我一個錯誤...
Invalid URI supplied
哪些錯誤這此特定網址?
我跑了一個str_replace用%5F替換它,它沒有什麼區別。無論如何,下劃線都是有效的URI字符,爲什麼它會成爲一個問題? – 2011-03-15 22:14:35
@Jason查看我的編輯 – Phil 2011-03-15 22:16:43
@Jason這裏是一個ZF用來驗證URI的正則表達式'preg_match('/^[0-9.ae:.]*$/i',$ value)' – criticus 2011-03-15 22:19:39