#252: BibDocFile: Allow using custom HTTP headers to retrieve URLs
-------------------------+--------------------------------------------------
 Reporter:  bthiell      |       Owner:  bthiell
     Type:  enhancement  |      Status:  new    
 Priority:  major        |   Milestone:         
Component:  WebSubmit    |     Version:         
 Keywords:  headers      |  
-------------------------+--------------------------------------------------
 Sometimes people need to use custom headers to access files such as
 fulltexts e.g.. BibDocFile currently does not currently support using
 specific headers. One solution would be to propose in invenio.conf to feel
 in a dictionary such as:
 {{{
 CFG_BIBDOCFILE_URL_DOWNLOAD_HEADERS = {
     'http://myurl.com/*': { 'User-Agent': 'Me' },
     }
 }}}

 The keys would be regular expressions and the dictionary of headers is
 consumed by urllib2.Request.

-- 
Ticket URL: <http://invenio-software.org/ticket/252>
Invenio <http://invenio-software.org>

Reply via email to