Solr URLDataSource Indexing - How to Add Headers to a Request URL

I want to index the xml that I am extracting from a URL using a URLDataSource.

The following is a fragment of a data file:

<dataSource type="URLDataSource" readTimeout="100000"  />
<document>
    <entity processor="XPathEntityProcessor" url="${dataimporter.request.url}"

The URL requires the content type: application / json to be added in the header.

Are there any ideas on how to add a title to the request URL?

Thanks.

+4
source share

All Articles