hadrienb
unread,Jun 16, 2010, 5:02:26 AM6/16/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to APE Project
Hello,
Here is something I can't resolve :
on the server side, I launch a Http request and I'm receiving the
response I'm waiting for.
So it's working properly but when I tried to read the headers of this
response it appeared to be empty...
The status value is '200', the body is ok but nothing (not "undefined"
or "object".. just nothing) in the headers.
Here is my server side javascript code :
(I also edited the Http.js file to get the entire response object, not
just the body...)
request.getContent(function(result) {
Ape.log('STATUS : '+result['status']);
Ape.log('HEADERS : '+result['headers']);
Ape.log('BODY : '+result['body']);
Ape.getPipe(params.pipe).sendRaw("data",
{"msg":result});
});
Something wierd (or not, I'm not sure^^) on the client side, after I
sent the response object through the sendRaw() function, the headers
is not empty but its value is '0'.
Could I have some help and/or explanation please? Thank you :)