Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chadmayfield/f16a3bf27c5f2587be1ec5bb82433dd6 to your computer and use it in GitHub Desktop.
Save chadmayfield/f16a3bf27c5f2587be1ec5bb82433dd6 to your computer and use it in GitHub Desktop.
Using perl File::Fetch to download alexa top 1m, error
GET /alexa-static/top-1m.csv.zip HTTP/1.1
TE: deflate,gzip;q=0.3
Connection: TE, close
Authorization: Basic YW5vbnltb3VzOkZpbGUtRmV0Y2hAZXhhbXBsZS5jb20=
From: [email protected]
Host: s3.amazonaws.com
If-Modified-Since: Fri, 05 May 2017 17:42:18 GMT
User-Agent: File::Fetch/0.38
HTTP/1.1 400 Bad Request
x-amz-request-id: E2D8F99FAFBEBD1F
x-amz-id-2: 4ohJSQhlYmHounqCZ/k1qekhujvKfOIQNZTaSNtnwtP4CIKPHb3JQVcc0bJLrDqzWfAK2W1uEU0=
Content-Type: application/xml
Transfer-Encoding: chunked
Date: Sat, 06 May 2017 02:15:04 GMT
Connection: close
Server: AmazonS3
182
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidArgument</Code><Message>Unsupported Authorization Type</Message><ArgumentName>Authorization</ArgumentName><ArgumentValue>Basic YW5vbnltb3VzOkZpbGUtRmV0Y2hAZXhhbXBsZS5jb20=</ArgumentValue><RequestId>E2D8F99FAFBEBD1F</RequestId><HostId>4ohJSQhlYmHounqCZ/k1qekhujvKfOIQNZTaSNtnwtP4CIKPHb3JQVcc0bJLrDqzWfAK2W1uEU0=</HostId></Error>
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment