title: Getting Yahoo! Finance RSS using JQuery and Google API error
body: <p>Trying to get RSS from Yahoo! Finance based on answers from Andrew and Dylan Valade in <a href="https://stackoverflow.com/questions/226663/parse-rss-with-jquery">Parse RSS with jQuery</a> but receiving an error:</p>
  
  <p>data.responseData is null</p>
  
  <p>success()
  data = Object { responseDetails="Feed could not be loaded.", responseStatus=400, responseData=null}</p>
  
  <p>Loading the same URL from the browser or PHP cURL returns the RSS data ok</p>
  
  <p>url: <a href="http://feeds.finance.yahoo.com/rss/2.0/headline?s=" rel="nofollow noreferrer">http://feeds.finance.yahoo.com/rss/2.0/headline?s=</a>^FTSE,
  url encode: http%3A%2F%2Ffeeds.finance.yahoo.com%2Frss%2F2.0%2Fheadline%3Fs%3D%5EFTSE</p>
  
  <p>Testing from local vhost on my Mac (OS X 10.5.8, XAMPP 1.7.3). I tried zRSSfeed plugin wich also use Google API, and received the same error: "Feed could not be loaded". Index data and chart are working fine</p>
  
  <p>Thanks in advance</p>
  
  <hr>
  
  <pre><code>function getRSS(symbol, url, callback) {
      $('#rss').html('http://feeds.finance.yahoo.com/rss/2.0/headline?s='+symbol+'&lt;br /&gt;');
      $('#rss').append(encodeURIComponent(url));
      $.ajax({
      url: document.location.protocol + '//ajax.googleapis.com/ajax/services/feed/load?v=1.0&amp;num=10&amp;callback=?&amp;q=' + encodeURIComponent(url),
      dataType: 'json',
          success:
              function (data) {
                  callback(data.responseData.feed);
              },
          error:
              function (jqXHR, textStatus, errorThrown) {
                  $('#rss').append('&lt;span class="downVal"&gt;'+textStatus+'&lt;/span&gt;');
                  $('#rss').append('&lt;br /&gt;'+'&lt;span class="downVal"&gt;'+errorThrown+'&lt;/span&gt;');
              }
      });
  }
  
  function parseRSS(newsFeed) {
      $('#rss').append(newsFeed);
  }
  
  jQuery(document).ready(function($) {   
  ...
      summary(symbol);
      $('#chart').html('&lt;img style="-webkit-user-select:none" src="http://chart.finance.yahoo.com/z?s='+symbol+'&amp;t=3m&amp;q=l&amp;l=on&amp;z=m&amp;p=m20,m200,v&amp;a=r14,m26-12-9"&gt;');
      getRSS(symbol, 'http://feeds.finance.yahoo.com/rss/2.0/headline?s='+symbol, parseRSS);
  ...
  </code></pre>