# Http\_poller not able to handle 302

**URL:** <https://discuss.elastic.co/t/http-poller-not-able-to-handle-302/186239>\
**Category:** Logstash\
**Created:** [June 18, 2019, 11:38am UTC](https://discuss.elastic.co/t/http-poller-not-able-to-handle-302/186239 "2019-06-18T11:38:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sjabiulla](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sjabiulla/32/48429_2.png) [@sjabiulla](https://discuss.elastic.co/u/sjabiulla)\
**Post date:** [June 18, 2019, 11:38am UTC](https://discuss.elastic.co/t/http-poller-not-able-to-handle-302/186239/1 "2019-06-18T11:38:02Z")

</div>

I have an url ( lets say URL1, this is just http ) which just redirects to another url ( lets say URL2, this is https ) on invoking. When I try invoking the URL1 via curl , it clearly gives me 302 . But when I do this via http\_poller, it's not giving any response.

Here is my logstash conf for input http\_poller.

```
input {
  http_poller {
    urls => {
      "ES Instance" => "http://localhost:9200"
      "My URL" => "URL1"
    }   
    follow_redirects => false
    request_timeout => 60
    schedule => { "every" => "10s"}
    codec => plain
    metadata_target => "http_poller_metadata"
  }
}
output {
  stdout {
    codec => rubydebug
  }
}

```

Here is the what I'm seeing in output.

```
{
              "@timestamp" => 2019-06-18T11:33:18.021Z,
                "@version" => "1",
                    "tags" => [
        [0] "_http_request_failure"
    ],
    "http_poller_metadata" => {
                   "name" => "My URL",
                   "host" => "My Host Id",
        "runtime_seconds" => nil,
                "request" => {
               "url" => "My URL",
            "method" => "get"
        }
    },
    "http_request_failure" => {
                  "error" => "SSL peer shut down incorrectly",
                   "name" => "My URL",
        "runtime_seconds" => 1.064,
              "backtrace" => nil,
                "request" => {
               "url" => "URL1",
            "method" => "get"
        }
    }
}

```

Can you please assist with this.

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 18, 2019, 1:47pm UTC](https://discuss.elastic.co/t/http-poller-not-able-to-handle-302/186239/2 "2019-06-18T13:47:55Z")

</div>

> [@sjabiulla](#):
>
> follow\_redirects =\> false

You said you expect to get a redirect but have told the input not to follow it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 16, 2019, 1:48pm UTC](https://discuss.elastic.co/t/http-poller-not-able-to-handle-302/186239/3 "2019-07-16T13:48:02Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
