curl download file only with extra header in the request -
the title pretty says all. want data when calling of file e.g.
curl -i -x -h "x-auth-token: auth_tk8bf07349d36041339450f0b46a2adc39" "http://localhost:8080/v1/auth_myaccount/my_docs/test3"
this gives me result following
http/1.1 200 ok content-length: 16 accept-ranges: bytes last-modified: thu, 23 apr 2015 08:20:53 gmt etag: f6af11f7f25860eeffa07df03349036f x-timestamp: 1429777252.80583 content-type: application/octet-stream x-trans-id: txcf35631cdad94b71812f9-00553c792b date: sun, 26 apr 2015 05:35:39 gmt taste 3
but want file output should show
this taste 3
i know have put -o intact file name sure how put in above request , file only
how can this??
Comments
Post a Comment