I am executing the following sequence:
GET company/filing-history/transaction_id/
from the response, I extract links$document_metadata
GET metadata, Accept = “application/xhtml+xml”, Authorization = "Basic "+ auth_code
from the response I get the following fields:
links$document
resouces$application/pdf
resources$application/xhtml+xml
Both resources have non-zero length.
I then try:
GET links$document Authorization = "Basic "+auth_code followlocation=FALSE
response status: 302 and no content
or
GET links$document followlocation=FALSE
response status: 401 and no content
or
GET links$document Authorization = "Basic "+auth_code followlocation=FALSE
response status 400
Body says: one auth mechanism allowed; only the X-Amz-Algorthim query parameter, Signature query string parameter or the Authorization header should be specified.
Any suggestions as to what I am doing wrong?