Hey, has anyone else see where the HTTP status codes are not returned in the event table in the response to the network.request call on Android?
I have some conditions keying off http status codes, and it is failing on Android (works on iOS and in simulator). When i print out the event table i only get the following (no status code!):
10-01 12:53:21.653 I/Corona ( 1005): RETURNING FROM NETWORK REQUEST
10-01 12:53:21.653 I/Corona ( 1005): key isError
10-01 12:53:21.653 I/Corona ( 1005): value true
10-01 12:53:21.653 I/Corona ( 1005): key url
10-01 12:53:21.653 I/Corona ( 1005): value http://192.168.1.122:8080/ServerInstance/availability
10-01 12:53:21.653 I/Corona ( 1005): key name
10-01 12:53:21.653 I/Corona ( 1005): value networkRequest
10-01 12:53:21.653 I/Corona ( 1005): key response
10-01 12:53:21.653 I/Corona ( 1005): value Forbidden
10-01 12:53:21.653 I/Corona ( 1005): done loop
On iOS and the simulator i see the extra bit of data i need:
2012-10-04 12:12:05.427 Corona Simulator[88530:707] key status
2012-10-04 12:12:05.428 Corona Simulator[88530:707] value 403
Anyone know what the deal is and where the status code has gone? I couldn’t find anything in the forums, and is seems like someone would have hit this before if this was some glaring omission in the SDK, so i assume the fault is mine and will readily embrace it along with any penance i must perform. I just need to know before i start rewriting how the server does responses for android.
[import]uid: 105599 topic_id: 31639 reply_id: 331639[/import]