Hi Akash

No, the communication is not over SSL (as far as i know).
Plus, orkut add a lot of GET parameters such as opensocial_owner_id,
oauth_nonce, etc..

Just to make sure you ain't doing anything wrong..

Use this code on client

/**
 * Perform remote server requests. The requests is signed by the container.
 * @function
 * @param {String} url
 * URL containg the get and post parameters to which the request is to be
made.
 * @param {Function} [callback]
 * Function to call back when a response is received by the server.
 * @example
 * call("http://www.sampleserver.sample?key1=value1&key2=key2=value2";); //
key1 and key2 are passed as GET parameters.
 * call("http://www.sampleserver.sample|key1=value1&key2=key2=value2"); //
key1 and key2 are passed as POST parameters.
 * call("http://www.sampleserver.sample?key1=value1|key2=key2=value2"); //
key1 is passed as a GET parameter and key2 is passed as a post parameter.
 */
function call (url, callback)
{
    var params = {};
    params[gadgets.io.RequestParameters.AUTHORIZATION] =
gadgets.io.AuthorizationType.SIGNED;
    // Request should be signed by the container.

    // URL contains post parameters, post paramters are separated by a '|'
(without quotes) from the main URL.
    if (url.indexOf("|") -1)
    {
        // tell container its a POST request.
        params[gadgets.io.RequestParameters.METHOD] =
gadgets.io.MethodType.POST;
        var urls = url.split("|");
        url = urls[0];
        params[gadgets.io.RequestParameters.POST_DATA] = urls[1]; // POST
Data
    }
    gadgets.io.makeRequest(url, callback, params);
}

This is a modified versionof the function that I have been using in the
production, stripped of all the user built libraries that i have been using.
If there's an error with this thing, let me know, I will resolve it.

And use the following code on the server to get all the GET and POST
parameters..

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Specialized;

public partial class Sample : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
            NameValueCollection gets = Request.QueryString;
                for (int i = 0; i < gets.Count; i++)
                { Response.Write(gets.GetKey(i) + ": " +
gets.GetValues(i)[0] + "<br />"); }
            Response.Write("</br>");
            NameValueCollection posts = Request.Form;
                for (int i = 0; i < posts.Count; i++)
                { Response.Write(posts.GetKey(i) + ": " +
Uri.EscapeUriString(posts.GetValues(i)[0]) + "<br />"); }
            Response.End();
    }
}

All the best.

Raman

--~--~---------~--~----~------------~-------~--~----~
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