Can anyone tell me why this fails?
It seems that while the code 'CanRead()' the URL's stream just fine, it cannot
actually 'Read()' it at all!
Substituting other URL and direct file references, even local ones, works fine,
as does a directly fetched
copy of the page I'm after, stored locally. It is impossible to read this
stream directly from the remote source.
Why?
function HTTP_GET(URL) local T,S={}
S=wx.wxURL(URL):GetInputStream() while S:CanRead() do
table.insert(T,S:Read(64)) end
return table.concat(T)
end
HTTP_GET("http://www.metoffice.com/satpics/latest_uk_ir.html")
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users