Network Request Error only using Corona

Hi,

I’m using database.com rest api. I don’t have problems running it on ruby or with curl or even with http://www.hurl.it/ … but I have problems running on corona… Only on Corona I hit response "401
[{“message”:“Session expired or invalid”,“errorCode”:“INVALID_SESSION_ID”}] ".
What am i doing wrong?

[blockcode]
local qry=‘https://speed-flow-7708.database.com/services/data/v24.0/query/?q=SELECT+Name+from+Eco__c
local params = {}
params[“Authorization”] = 'OAuth '…my_access_token

network.request( q_url, “GET”, networkListener_dbdc_query, params )
[/blockcode]

With this code I hit invalid session, but on ruby or with curl I don’t get any error. Can this be related to url encoding ?

Thanks
Joao [import]uid: 141428 topic_id: 28414 reply_id: 328414[/import]

Solved.
I had to create a lua table named headers and include it in params table.

BR
Joao [import]uid: 141428 topic_id: 28414 reply_id: 114842[/import]