custom Http authentication for Google calendar API - epiphany



we are trying to use custom Http authentication for Google calendar API.

 

var dataReq = new XMLHttpRequest();

dataReq.open("GET", "http://www.google.com/calendar/feeds/default/owncalendars/full", true);

dataReq.withCredentials = "true";       

dataReq.setRequestHeader('Content-type', 'application/atom+xml');

dataReq.setRequestHeader("Authorization", "GoogleLogin auth=xxxxxxxxxxxxxxxxxx);

dataReq.setRequestHeader("Connection", "close");      

        dataReq. () {

            if (dataReq.readyState == 4) {

                switch (dataReq.status) {

                case 200:                   

                    break;

                case 401:                 

                    break;               

                }

            };

        }

 

While the the client token, we are getting correctly, and this code works fine firefox 2.0, 3.5.x, and on IE - but it does not work on epiphany, it seems custom http authentication is not recognized by epiphany.

 

we always get "401" - Authoization required.

 

Sudhir



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]