Forum Discussion
Brian_Gibson_30
Nimbostratus
May 15, 2014Receive string not matching on request
I am fairly new to doing HTTP requests. My company doesn't do a lot of http specific stuff on the LBs.
Anyway I'm trying to do a basic http monitor and I can't seem to get the receive to match. H...
Cory_50405
Noctilucent
May 15, 2014Change your monitor Blah send string to this (replace host.domain.com with the actual host name):
GET /BCCommunicationDirector/Blah.ashx HTTP/1.1\r\nHost: host.domain.com\r\nConnection: Close\r\n\r\n
You need to specify a host header in your send string to comply with HTTP/1.1.
- Brian_Gibson_30May 15, 2014
Nimbostratus
Thanks Cory. I don't have an actual host name to for this specific service. Is there a way to use the node IP address in the check? - Brian_Gibson_30May 15, 2014
Nimbostratus
Never mind. Apparently the host name doesn't matter in this case. - Cory_50405May 15, 2014
Noctilucent
That should also work. In your cURL statement above, you can see the HTTP/1.1 request specifying the IP address as the host, and the server responded with a 200 OK. Looks like it isn't doing any host name checking. - Cory_50405May 15, 2014
Noctilucent
If your receive string still isn't working, try changing it to this: 200\sOK - Brian_Gibson_30May 15, 2014
Nimbostratus
Everything is working. I guess all the docs I was reading referring to http .9 and that threw me for a loop. I thought the LBs would add the host aspect. Obviously I was mistaken. - Cory_50405May 15, 2014
Noctilucent
Correct. HTTP/0.9 is used by default. Glad to hear things are working now.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects