Reputation: 1267
I'm trying to use wget with GET parameters, but I think I'm missing something. Can someone help me to use it with these parameters?
GET /<api version>/<account>/<container>/<object> HTTP/1.1
Host: storage.swiftdrive.com
X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb
I tried with:
wget -A "http://ipadress/get/v1/AUTH_test/test/test.jpg
&Auth-Token:AUTH_tk7b471e3d3dff450d9b826c39eb3d29f1"
What should I be using instead?
Upvotes: 4
Views: 41975
Reputation: 3151
You can use Links
command line software for browsing html pages on terminal. For example:
$ links http://google.com
Upvotes: -1
Reputation: 9368
X-Auth-Token
must be sent as a request header like so
wget --header='X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb' -A ...
Upvotes: 0
Reputation: 58982
There is no GET parameters in there, just a path. X-Auth-Token
is a custom header. Try:
wget -d --header="X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb" http://ipadress/get/v1/AUTH_test/test/test.jpg
Upvotes: 8