Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@int128
Copy link
Owner

@int128 int128 commented Sep 16, 2018

% go run main.go --debug --request-header=x-foo:bar --request-header=x-foo:baz --request-auth=alice:bob https://www.example.com/image.jpg
2018/09/17 03:15:05 The following 1 items will be uploaded:
  1: https://www.example.com/image.jpg
2018/09/17 03:15:05 Using token in ~/.gpupconfig
2018/09/17 03:15:05 Queued 1 item(s)
2018/09/17 03:15:05 [REQUEST] GET https://www.example.com/image.jpg
GET /image.jpg HTTP/1.1
Host: www.example.com
User-Agent: Go-http-client/1.1
Authorization: Basic YWxpY2U6Ym9i
X-Foo: bar
X-Foo: baz
Accept-Encoding: gzip

2018/09/17 03:15:06 [RESPONSE] GET https://www.example.com/image.jpg
HTTP/2.0 404 Not Found

@int128 int128 merged commit fa922fd into master Sep 17, 2018
@int128 int128 deleted the request-options branch September 17, 2018 07:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants