# HTTP Polling

**URL:** <https://community.gatling.io/t/http-polling/4136>\
**Category:** Gatling (Open-Source)\
**Created:** [January 24, 2018, 6:37am UTC](https://community.gatling.io/t/http-polling/4136 "2018-01-24T06:37:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahenda\_Khaled](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Shahenda\_Khaled](https://community.gatling.io/u/Shahenda_Khaled)\
**Post date:** [January 24, 2018, 6:37am UTC](https://community.gatling.io/t/http-polling/4136/1 "2018-01-24T06:37:55Z")

</div>

Hi,

I tried to follow the documentation ([https://gatling.io/docs/2.3/http/polling/](https://gatling.io/docs/2.3/http/polling/)) to start polling a REST call and my code is:

**exec(**  
**polling**  
**.every(2 seconds)**  
**.exec(http(“Home”)**  
**.get("/iPIM/rest/api/jobhistory/search?running=true")**  
**.headers(rest\_headers)**  
**.check(bodyString.saveAs(“restResponse”))**  
**))**

but I get an exception that nothing is called during simulation:

**Exception in thread “main” java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won’t be generated**

Any ideas?

Thanks
