# What's wrong with http-check send?

**URL:** <https://discourse.haproxy.org/t/whats-wrong-with-http-check-send/6434>\
**Category:** Help!\
**Created:** [April 3, 2021, 3:18pm UTC](https://discourse.haproxy.org/t/whats-wrong-with-http-check-send/6434 "2021-04-03T15:18:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Buffer](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Buffer](https://discourse.haproxy.org/u/Buffer)\
**Post date:** [April 3, 2021, 3:18pm UTC](https://discourse.haproxy.org/t/whats-wrong-with-http-check-send/6434/1 "2021-04-03T15:18:34Z")

</div>

Whats wrong with the following configuration?

```
frontend reproducer
  mode http
  bind *:80    
backend reproducer_backend
  mode http
  balance roundrobin		
  option httpchk
  http-check expect string ok       		
  http-check send hdr host foo.bar meth GET uri / 

  server s1 mydomain.com:10001 check
  server s2 mydomain.com:10002 check

```

How to do multiline source code with discourse??

---

<div class="post-metadata">

**Author:** ![Buffer](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Buffer](https://discourse.haproxy.org/u/Buffer)\
**Post date:** [April 3, 2021, 3:57pm UTC](https://discourse.haproxy.org/t/whats-wrong-with-http-check-send/6434/2 "2021-04-03T15:57:48Z")

</div>

Spoiler: It leads to the error:  
unable to add http-check send rule at step 2 (missing connect rule)…

How to fix the config?

---

<div class="post-metadata">

**Author:** ![Buffer](https://avatars.discourse-cdn.com/v4/letter/b/3be4f8/32.png) [@Buffer](https://discourse.haproxy.org/u/Buffer)\
**Post date:** [April 3, 2021, 4:31pm UTC](https://discourse.haproxy.org/t/whats-wrong-with-http-check-send/6434/3 "2021-04-03T16:31:32Z")

</div>

It turns out that ‘send’ hast to be set before the ‘expect’. Can’t see that in the documentation though
