I am trying to download a file from Google Docs, via my ASP.Net app.
Since I am using OAuth, I generated a signature and into authorization string.
From Google Docs documentation, to access it's resource, I will need to add:
Authorization: <authorization string>
in the request header.
I wrote a snippet to do the redirection:
context.Response.AddHeader("GData-Version", "3.0");
context.Response.AddHeader("Host", downloadLinkUrl.Host);
context.Response.AddHeader("Authorization", authorizaString);
context.Response.RedirectLocation = downloadLink;
context.Response.Redirect(downloadLink);
It redirected to the downloadLink, but Header information is missing, as seen from Firebug. Thus I get 401 Not Authorized.
Some read up said that it's not possible. Is there any hack around?
Thanks.