HTTP headers support in response for GET method in network.request

Hi guys!

First of, thank you for a great product!

I just finnished my first Lua class for Corona SDK. It implements support for the Nginx HTTP_Push module (Comet server) that allows developers to setup their own Push Server.

How ever, for this to work properly I need to read the header from the GET results. Is it possible to add this feature? My suggestion is to add event.headers.

Thank you! [import]uid: 106083 topic_id: 18221 reply_id: 318221[/import]

I managed to do a dirty fix for now. [import]uid: 106083 topic_id: 18221 reply_id: 69774[/import]

I second that!

@Johantd04: How did you get the headers? [import]uid: 110609 topic_id: 18221 reply_id: 73255[/import]

Well I did’t. I solved it by sending the needed header data within a json object within the body. [import]uid: 106083 topic_id: 18221 reply_id: 73258[/import]

Ah, I see. I’m surprised the Corona team left out the headers, seeing as how easy it is to set them. Oh well. Titanium it is, I guess. *sad* [import]uid: 110609 topic_id: 18221 reply_id: 73261[/import]

+1 for event.headers [import]uid: 12822 topic_id: 18221 reply_id: 84285[/import]

+1

Even I would expect them on event.response.headers …

Any chance for a contemporary implementation of this feature request?

Thanks a lot in advance =) . [import]uid: 119324 topic_id: 18221 reply_id: 88604[/import]

+1

Anyone have any idea if you can access the response headers using Lua Socket instead?

Ali [import]uid: 10499 topic_id: 18221 reply_id: 108220[/import]