DSpace / xoai

OAI-PMH Java Toolkit
28 stars 52 forks source link

Allow setting the User Agent in HTTP requests #61

Closed mdcarreira closed 7 years ago

mdcarreira commented 7 years ago

Some repositories will return a HTTP 403 Forbidden when HttpOAIClient tries to execute requests. This occurs because the User Agent property is not properly configured.

Therefore, to avoid this issue, HttpOAIClient should allow changing the User Agent.

Example of OAI repository where this error occurs: http://repositorio.insa.pt/oaiextended/request

mmalmeida commented 7 years ago

@mdcarreira could you send your pull request for this one please?