{"desc":"this is a test","tok":"123974329742"}
local response = http.request {
url = 'http://google.com',
params = {
q=request.desc
},
method = "POST"
}
return response.content
How are the arguments being passed? Query parameters? Form post? JSON in the request body?
If you're not sure, please paste a request from your log here so I can see.
--
You received this message because you are subscribed to the Google Groups "Webscript.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webscriptio...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Resending since I'm not sure my first reply made it through:
Hmm. I still don't know what that does. :-) (I don't know what Angular does here.)
But my guess would be that the data is passed as JSON in the request body, so you would want something like this: json.parse(request.body).desc.