Hello,

Seems that I have somehow broken my working makeRequest POST sample
(in Orkut, works fine in other containers like hi5). When I test it
outside the social networking containers, it is also returning data/
text.

Here are the details from the request:
POST
authz
bypassSpecCache
container                   orkut-sandbox
contentType             JSON
gadget                   http://www.hotelzapper.net/posttest.xml
getSummaries         false
headers                   Content-Type=application%2Fjson
httpMethod              POST
numEntries             3
postData                 {"test":[{"attr1":
0,"attr2":"yellow","attr3":"val3","attr4":"val4"}]}
signOwner             true
signViewer             true
st
url                           http://data.phonefriends.socialsaver.net/people


Response:
throw 1; < don't be evil' >{"http://data.phonefriends.socialsaver.net/
people":{"headers":{"set-cookie"
:["rack.session=856cd202d62f4215c9f3e6da93625db4; path=/;
HttpOnly"]},"body":"","rc":201}}


Sample coding to trigger the POST request:
    var params = {};

    params[gadgets.io.RequestParameters.METHOD]       =
gadgets.io.MethodType.POST;
    params[gadgets.io.RequestParameters.POST_DATA]    = "{\"test\":
[{\"attr1\":0,\"attr2\":\"yellow\",\"attr3\":\"val3\",\"attr4\":
\"val4\"}]}";
    params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.JSON;

    params[gadgets.io.RequestParameters.HEADERS] = {"Content-
Type":"application/json"};
    gadgets.io.makeRequest("http://data.phonefriends.socialsaver.net/
people", responseDataToChartGeneration, params);


Has anyone any hints what could be wrong? I am somehow not seeing it.

Thanks, Markus


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to