Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

HTTPClient makes trouble by gettinhg of RSS-feeds

$
0
0

Hi,

in my podcast app I try to collect RSS feeds. So far so good. A litte part of URls makes trouble (most are serendipity blogs): the server give me a HTML instead of XML. Normal browsers, wget and cURL works fine. But the Android HTTPclient has only this crazy behavior. After inspection of firefox console I send:

xhr.open('GET', _url, true);
xhr.setRequestHeader('User-Agent', 'Mozilla/5.0 (KHTML, like Gecko FeedBurn planet)');
xhr.setRequestHeader('Accept', 'application/rss+xml');
xhr.setRequestHeader('Cookie', null);
xhr.setRequestHeader('Accept-Encoding', 'gzip, deflate');
xhr.send();
I have inspect the sources of rss.php of serendipity too. I cannot see something suspicious .

Any ideas?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>