Here is my network request:
local headers = {} headers["Content-Type"] = "application/x-www-form-urlencoded" headers["Accept"] = "application/json" headers["x\_customHeader"] = "customHeaderValue" local body = "color=red&size=small" local params = {} params.headers = headers params.body = body network.request( hReq, "POST", networkListener, params)
problem is that my headers are not showing up on the server … hitting a node.js server and printing the req.header immediately i get the following:
{ host: 'localhost:3000', 'user-agent': 'Corona%20Simulator/2013.1198 CFNetwork/596.4.3 Darwin/12.4.0 (x86\_64) (MacBookPro8%2C3)', 'content-length': '0', accept: '\*/\*', 'accept-language': 'en-us', 'accept-encoding': 'gzip, deflate', cookie: 'connect.sid=s%3ApvALisxH9UzRIDdmyJwIyyIy.OIQ%2B8UE51TaP3bE42nsujfkFaTUbRF53QP7EocmS37c', connection: 'keep-alive' }
Seems like the headers are being created by the network.request but none of my header values are present when the request gets to the server.
This is an http request and i am using build 1198
Any ideas would be appreciated … at wits end?
Funny thing is this code used to work back 50-60 builds ago.
Cheers,
m