I cannot seem to get makeRequest to use POST.

This is the line of code:

opensocial.makeRequest("http://mydomain.com/test/hello.php";,
      onServerResponse, {'method' : 'POST', 'contentType' : 'html',
'postData' : 'a=123&b=456'}

1.  On server side, $_POST is empty

2.  $_SERVER['REQUEST_METHOD'] is GET

What am I doing wrong?

Thanks


On Feb 2, 9:18 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> {  'postData' : 'A=value&B=value'  }
>
> -Dustin
>
> On Feb 1, 2:03 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I need help me on posting variables to a server side file using
> > makerequest()....
>
> > Suppose I have 2 variables 'A'  and 'B' to be posted
> > How do I pass these variable to the function below???
>
> > opensocial.makeRequest('URL',
> >         function (response) {
> >                 alert(response);
> >      },
> >           {'method' : 'POST', 'contentType' : 'html', 'postData' :
> > '?????'  })
>
> > Regards,
> > Mkarand
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Discussion" 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