I have an rss feed working fine from an http GET request from the Roku. I am trying to change it to http POST. I am getting an error and the feed isnt being parsed. I know the rss feed is outputting the proper format/info from the POST request, but am having trouble capturing it back at the Roku.
Here is the error
<br />
Found error in the file '<b>/home/phcom/public_html/web/rss13/index3.php</b>' at line <b>30</b>.<br />
Called '<b>getAll</b>' function with erroneous argument #<b>0</b>.<br /><br />
and the calling function:
Function SendFavsViaPost(feed_url)
strx = ReadAsciiFile("tmp:/apfavorites")
m.http.SetUrl(feed_url)
m.http.PostFromString("AID=" + strx)
xml=m.http.GetToString()
print xml
rss=CreateObject("roXMLElement")
if not rss.Parse(xml) then stop
print "rss@version=";rss@version
pl=CreateObject("roList")
for each item in rss.channel.item
pl.Push(newPhotoFromXML(m.http, item))
print "photo title=";pl.Peek().GetTitle()
next
return pl
End Function
Kinetics Screensavers