Hi,

I am trying to initiate a POST request using this code:

    opt_params = {};
    opt_params[gadgets.io.RequestParameters.AUTHORIZATION] =
gadgets.io.AuthorizationType.SIGNED;
    opt_params[gadgets.io.RequestParameters.METHOD] =
gadgets.io.MethodType.POST;
    opt_params[gadgets.io.RequestParameters.POST_DATA]="testdata=911";
    opt_params[gadgets.io.RequestParameters.HEADERS]={'Content-type':
''application/x-www-form-urlencoded'};
    gadgets.io.makeRequest('http://www.mydomain.com/orkut/set.php',
fn,
        opt_params);

However, when Orkut connects to my server, the headers are not sent,
hence PHP does not get the $_POST['testdata'] argument.

Here is the captured HTTP request:

POST /orkut/set.php?opensocial_ownerid=[SNIPPED]
Content-Type:
Host: www.thesamet.com
Content-Length: 9
Accept-Encoding: gzip

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
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