I am a developer working with others to try and automate the downloading of customers files. The customer selects a file(s) from a GUI that uses the Basespace API.
So the idea is I get a URL that allows me to download a file shared with me.
On a windows machine when I click on the link the file begins to download in a new tab in the browser and here is a small snippet:
[1] 7559
[2] 7560
DEBUG output created by Wget 1.13.4 on linux-gnu.
URI encoding = `UTF-8'
[3] 7561
[2] Done Expires=123456789
Created socket 3.
Releasing 0x00000000013650a0 (new refcount 1).
Initiating SSL handshake.
response-content-disposition=filename%3DHHCBYD_S1_L001_R2_001.fastq.gz: command not found
Handshake successful; connected socket 3 to SSL handle 0x00000000013653f0
certificate:
issuer: /C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at https://www.verisign.com/rpa (c)10/CN=VeriSign Class 3 Secure Server CA - G3
---request begin---
GET /c77e8484d04847f6b0eba191010abd37/HHCBYD_S1_L001_R2_001.fastq.gz?AWSAccessKeyId=mykeyissecret HTTP/1.1
User-Agent: Wget/1.13.4 (linux-gnu)
Accept: */*
Connection: Keep-Alive
---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 403 Forbidden
x-amz-request-id: BCC2E38D25E75EC6
x-amz-id-2: KMS7x0OhhMz+i25+kkI1clGfBLHlb/AhK3H7NUVBUXBGfY/d581jIFvv+Z9yXsYzfCTdzxubBHU=
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Thu, 11 Sep 2014 12:59:34 GMT
Server: AmazonS3
---response end---
403 Forbidden
Registered socket 3 for persistent reuse.
Skipping 243 bytes of body: [<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>BCC2E38D25E75EC6</RequestId><HostId>KMS7x0OhhMz+i25+kkI1clGfBLHlb/AhK3H7NUVBUXBGfY/d581jIFvv+Z9yXsYzfCTdzxubBHU=</HostId></Error>] done.
2014-09-11 13:59:35 ERROR 403: Forbidden.
My first guess is an authentication problem, but then it downloads in a browser?. Tried curl as well with the same response. Any help and I would be very grateful!
John