Store Content in IDOL Server > Process Data before you Index > Send an HTTP Call to a Web Interface > Set up an HTTP Task

Set up an HTTP Task
Use the following procedure to set up a HTTP task to send a HTTP call.
To set up an HTTP task
1.
Open the IDOL server configuration file in a text editor.
2.
[MyHTTPTask]
3.
Set Module to HTTP, to identify the task as an HTTP task.
Module=HTTP
4.
Specify the URL of the application that you want the HTTP task to use. This URL can be a third-party Web interface such as HTML, CGI, JSP, ASP, .NET or any custom application that accepts HTTP input. For example:
URL=http://sqlengine/insert
5.
Specify the names of document fields whose content you want to pass to the specified URL application. If you want to specify multiple fields, you must separate them with commas (there must be no space before or after a comma). For example:
Fields=Category,DRECONTENT
6.
Specify the remapped names for fields, if the document fields you specified for Fields have different names to the ones in the application. To specify multiple fields, you must separate them with commas (there must be no space before or after a comma). For example:
RemapToFields=Category,Content
The first field you specify is remapped to the first one specified for Fields, the second one to the second, and so on.
7.
Specify any other parameters that you want to apply to your HTTP task. For details on available parameters, refer to the IDOL server Online Help. For example:
UsePostMethod=true
Timeout=200
8.
Save the IDOL server configuration file and restart IDOL server for your configuration changes to take effect.
Related Topics 
*
Example
In the following example, an HTTP task stores category details in an SQL database. It uses the following configuration:
[MyHTTPTask]
Module=HTTP
URL=http://sqlengine/insert
Fields=Category,DRECONTENT
RemapToFields=Category,Content
Every time IDOL server performs this task on an incoming document, it maps the incoming documents’ Category and DRECONTENT fields to equivalent fields in an SQL database, and sends this HTTP call to the SQL database using a Web interface:
http://sqlengine/insert?Category=CategoryValue&Content=ContentValue
The data then inserts into the SQL database.