Support for basic auth
physikerwelt opened this issue · comments
Does metha support basic-auth authorization?
Yes, I just added a -u admin:admin
flag to metha-sync
- this is available from 0.2.22 on:
Before that, metha-sync
supported -H header:value
extra header fields, which would allow you to pass any extra header to the requests, e.g.
$ metha-sync -H "Authorization: Basic $(echo -n user:password | base64)" http://ycc.repo.nii.ac.jp/oai
Hope this helps.
Amazing. Thank you. I already started writing my own script. However, it crashed already, 500 error... So I am happy to use a already hardened and well tested tool.