ActiveLicense OCR API call error - connection refused

@ashapkina,

I am facing connection refused error while calling OCR active license API.

<config xmlns="http://web-harvest.sourceforge.net/schema/1.0/config" scriptlang="groovy">
  
  <var-def name="getResponse">
  	<http url="http://<ocr server url>/api/v2/cloud/activeLicense" method="get" username="<ocr_username>" password="<ocr_pwd>"/>
  </var-def>
  
  <script><![CDATA[ 
  	println(getResponse.tostring());
  ]]></script>
  
  <export include-original-data="true"></export>
  
</config>
```
org.webharvest.exception.HttpException: IO error during HTTP execution for URL: http://ocr server url/api/v2/cloud/activeLicense
  at org.webharvest.runtime.web.HttpClientManager.execute(HttpClientManager.java:224)
  at org.webharvest.runtime.processors.HttpProcessor.execute(HttpProcessor.java:106)
  at org.webharvest.runtime.processors.BaseProcessor.run(BaseProcessor.java:127)
  at org.webharvest.runtime.processors.BodyProcessor.execute(BodyProcessor.java:27)
  at org.webharvest.runtime.processors.VarDefProcessor.execute(VarDefProcessor.java:59)
  at com.freedomoss.crowdcontrol.webharvest.processors.VarDefProcessorValidated.execute(VarDefProcessorValidated.java:28)
  at org.webharvest.runtime.processors.BaseProcessor.run(BaseProcessor.java:127)
  at org.webharvest.runtime.Scraper.execute(Scraper.java:169)
  at org.webharvest.runtime.Scraper.execute(Scraper.java:182)
  at com.freedomoss.crowdcontrol.webharvest.executor.LocalWebharvestTaskExecutor.executeWebHarvestTask(LocalWebharvestTaskExecutor.java:183)
  at com.freedomoss.crowdcontrol.webharvest.executor.LocalWebharvestTaskExecutor.executeWebHarvestTask(LocalWebharvestTaskExecutor.java:127)
  at com.workfusion.worker.ct.executors.WebharvestExecutorService.execute(WebharvestExecutorService.java:71)
  at com.workfusion.worker.ct.executors.CtTaskExecutorService.execute(CtTaskExecutorService.java:40)
  at com.workfusion.spa.core.execution.worker.router.TaskProcessor.executeTask(TaskProcessor.java:98)
  at com.workfusion.spa.core.execution.worker.router.TaskProcessor.processTask(TaskProcessor.java:66)
  at com.workfusion.spa.core.execution.worker.router.BaseMessageProcessor.processTask(BaseMessageProcessor.java:169)
  at com.workfusion.spa.core.execution.worker.router.BaseMessageProcessor.onMessageLogWrapped(BaseMessageProcessor.java:94)
  at com.workfusion.spa.core.execution.worker.router.BaseMessageProcessor.lambda$onMessage$0(BaseMessageProcessor.java:53)
  at com.workfusion.spa.core.execution.amqp.logging.LoggingUtils.wrapMessageProcessingToLoggingContext(LoggingUtils.java:71)
  at com.workfusion.spa.core.execution.amqp.logging.LoggingUtils.wrapMessageProcessingToLoggingContext(LoggingUtils.java:48)
  at com.workfusion.spa.core.execution.worker.router.BaseMessageProcessor.onMessage(BaseMessageProcessor.java:53)
  at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:1493)
  at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.actualInvokeListener(AbstractMessageListenerContainer.java:1384)
  at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:1360)
  at org.springframework.amqp.rabbit.listener.AbstractMessageListenerContainer.executeListener(AbstractMessageListenerContainer.java:1339)
  at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.doReceiveAndExecute(SimpleMessageListenerContainer.java:817)
  at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.receiveAndExecute(SimpleMessageListenerContainer.java:801)
  at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer.access$700(SimpleMessageListenerContainer.java:77)
  at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:1042)
  at java.lang.Thread.run(Thread.java:748)
**Caused by: java.net.ConnectException: Connection refused (Connection refused)**
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
  at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
  at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
  at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
  at java.net.Socket.connect(Socket.java:607)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
  at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:125)
  at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
  at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
  at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
  at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
  at org.webharvest.runtime.web.HttpClientManager.execute(HttpClientManager.java:215)
  ... 29 more