title: CQ5 Reverse replication: polling is not happening
body: <p>I have created a form using the OOTB form components. While submission it is hitting the service that I've written in the <code>post.POST.html</code>. It creates the nodes with primary type of <code>cq:Page</code>  and <code>jcr:content</code> with primary type of <code>cq:PageContent</code> under the path <code>/content/usergenerated/content</code>. I also have added <code>cq:distribute</code> property to <code>"true"</code>. I have done all configurations for both the Author and Publish modes. The nodes are created under the above mentioned path. The problem that I'm getting is polling is not happening in my case. I'm unable to see the changes in Author mode while the nodes are creating in the Publish mode.</p>
  
  <p>My console is printing this in Author mode:</p>
  
  <pre><code>19.05.2016 12:13:43.767 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse Sending GET request to http://localhost:4503/bin/receive?sling:authRequestLogin=1
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse sent. Response: 200 OK
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse ------------------------------------------------
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse Sending message to localhost:4503
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &gt;&gt; GET /bin/receive?sling:authRequestLogin=1 HTTP/1.0
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &gt;&gt; Action: Internal Poll
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &gt;&gt; Path: 
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &gt;&gt; Handle: 
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse --
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &lt;&lt; HTTP/1.1 200 OK
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &lt;&lt; Date: Thu, 19 May 2016 06:43:43 GMT
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &lt;&lt; X-Content-Type-Options: nosniff
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &lt;&lt; Content-Type: application/octet-stream
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &lt;&lt; Content-Length: 32
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &lt;&lt; Server: Jetty(9.2.9.v20150224)
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse &lt;&lt; X-Powered-By: Jetty(9.2.9.v20150224)
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse Message sent.
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse ------------------------------------------------
  19.05.2016 12:13:43.786 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse Reverse replication successful.
  19.05.2016 12:13:43.787 *INFO* [pool-6-thread-4] com.day.cq.replication.Agent.publish_reverse Fetched 0 contents from http://localhost:4503/bin/receive?sling:authRequestLogin=1 since null
  </code></pre>