Hello,

I tried opening this URL on the browser and it returns data for me without
login.
I dont know what might the reason that you are asked to login.
I will get more information on this and let you know if I find out anything.

Thank you,
Shraddha Gupta
Developer Programs Engineer
Hyderabad, Google India.



On Sat, Jan 14, 2012 at 5:58 PM, Jason <[email protected]> wrote:

> Hi.
>
> I've written a google app engine app that returns the URL:
>
> url = 'https://www.google.com/a/cpanel/.../ReportingDataSource?...' #
> info stripped for privacy
> req = urllib2.Request(url)
> response = urllib2.urlopen(req)
> page = response.read()
>
> When I run this on my PC, it works fine if I am logged into google -
> page contains the data.  If I log out of google, page contains login
> html.
>
> This is consistent with what happens in a browser - try it - if you
> are logged into google when you use a URL of this form, the data is
> returned.  Otherwise you will be sent a login page.
>
> Similarly, if the app runs under google's app engine infrastructure
> (from cron), a login page is returned, since google apps has been
> accessed without any auth context.
>
> So unless I am completely missing something, the question remains - is
> it possible to use oath or similar to authenticate so that this URL
> can be accessed?
>
> Thanks,
>
> J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Apps Domain Information and Management APIs" 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-apps-mgmt-apis?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" 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-apps-mgmt-apis?hl=en.

Reply via email to