Hi guys,
I'm trying to download a file from google docs using wget, I was able to login & get the download link, but when I try to download it, both curl and wget fail.
I used this bash code:
The URL format for the download link looks correct to me (but since it's dynamic I can't just reuse it to see exactly what's wrong):
http://doc-00-34-docs.googleusercontent.com/docs/securesc/llpeaaem51v1fp6hfrue1h5jhlhqtlt4/oo0dn5v23lq85v0jlcmgtriovobgdr04/1311717600000/08274386148752881479/08274386148752881479/0BxONkKiBZQq6ZmNjN2RjZjYtMjZhYi00MjRiLWJmN2YtNGM2ZjE4YWQ5Mzg0?h=04798133320467694200&e=download&gd=true
I googled "wget Closed fd 4" and it seems this is related to authentication, which is strange since I'm certain I was successfully logged in.
So I tried these operations, just to make sure:
1. Login
2. Get the list of folders & files
3. Get the download link for a file in particular
4. Download the file.
Only the last operation (download the file) failed, if it was a session problem, failure would've happened sooner.
Also, I don't think that the issue is happening because I used wget instead of curl (I used curl everywhere except when downloading the file), in fact, at first used this curl syntax before trying with wget (both methods failed):
ANY help would be greatly appreciated,
Thanks in advance!