Hello,

I'm trying to fetch windows live contacts from my GAE (web2py) app.
Interestingly, the following controller action works fine from my
local GAE app but I get "HTTPError: HTTP Error 401: Unauthorized" when
I try from my uploaded GAE app (??).  There's really no reason to
suspect web2py for this.

My question is: has anyone ever successfully used windows live
contacts services on GAE?  This is because I suspect some windows
services issues when responding to requests coming from GAE servers.

def manual():
    lid = 'my lid id'
    tok = 'EwCgARAnAAAUWkz....
qqSiEjX2%2BZDV1nmr6B72jI3ULF5nuIjX2qdM0mtMUEYxn3LVDLEbC%2BhIY6AAA%3D'
    url = "https://livecontacts.services.live.com/users/@l...@%s/rest/
LiveContacts" % lid
    req = urllib2.Request(url)
    req.add_header('Authorization', 'DelegatedToken dt="%s"' %
urllib2.unquote(tok))
    response = urllib2.urlopen(req)
    return dict(data=response.read())

Thanks,
Vishal

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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/google-appengine?hl=en.

Reply via email to