Downloading files from google drive with rest API / c++

I have files in my google drive , very small ones, <10kB, and I try to download those by using downloadUrl , but the result only seems to be redirection to happen all the time. I have seen also discussions about that but no actual results ..

I am using c++ and creating rest API request by myself ( not using any libraries for this )

But also , when I copy the url I receive after continue="..." web browser can make a download okay but calling that from C++ seems to cause just another redirection to happen .

I followed the instructions from: https://developers.google.com/drive/web/manage-downloads

Upvotes: 0

Views: 3817

Answers (1)

pinoyyid
pinoyyid

Reputation: 22306

This is probably a duplicate of Unable to retrieve file content from google drive API which states that the access token for downloading content needs to be set as an HTTP header.

Upvotes: 1

Related Questions