Download HTML with content

Hello to all Corona developers!

I got a question for you all, our company is building 4 pretty big games for ipad… For the help screens we want to use HTML so we can put it in Wordpress (or something else) and update easily without updating the app through the appstore. I can quite easily use native.showWebPopup… That works good…

So far so good,

However, I want the website to be available offline too. I tried the HTML5 manifest using an .appcache file. But that didn’t work anyone has any suggestions how to proceed?

I really hope someone knows how to do this,

Thanks a lot! [import]uid: 87151 topic_id: 15996 reply_id: 315996[/import]

I know you can save stuff with network.download( ) but it’s about the images, css & js (and maybe videos?) used in the html file [import]uid: 87151 topic_id: 15996 reply_id: 59307[/import]

and I guess network.download() only work when there is a server.
But in that case I get a POST from a simple Browser and just have to get all data thats following that “POST”

i tried with client:receive() or client:receive("*l") problem is, it looks that gets data Line by line.
so images etc are just messed.

Now I am trying with client:receive("*a") as i was reading it takes all

or

while true do  
  
 request,err = client:receive()  
 local s,status, partial = client:receive(2^10)  
 file:write(s or partial)  
 if status == "closed" then   
 print ("closed")  
 break   
 end  
  
end  

but either with *a or 2^10 … it never comes back from receive :frowning:
any idea how to work proper with *a or a specific block size?

thx
chris
[import]uid: 4795 topic_id: 15996 reply_id: 59337[/import]