Hi guys I am new to Corona and I have been spending for few days to figure out how the network.request api work.
Here is one of the questions I need your helps.
<html>
<body>
<FORM action=“http://ex.org/process” method=“get”>
<INPUT type=“text” name=“fileName” value=“http://example.org/images/test.png”>
<INPUT type=“submit” value=“Send”>
</FORM>
</body>
</html>
How do I insert html above into header and body params in corona?
This is what I got so far…
local headers = {}
headers[“Content-Type”] = “text/plain” – is this correct?
local params = {}
params.headers = headers
params.body = "what should I inside here?"
network.request( “http://ex.org/process”, “GET”, networkListener, params)
Any help would be much appreciated and sorry for my bad english.