Forum Discussion

ju_mah_47995's avatar
ju_mah_47995
Icon for Nimbostratus rankNimbostratus
Nov 30, 2010

Http monitor with the no-cache field applied

Hello,

 

 

I would like to monitor that google.fr is reachable through out our Proxies Servers, and that the page is not a cached response.

 

 

To do that, I tried to put the following in the "Send String" box of the default "http monitor":

 

 

GET http://www.google.fr/ HTTP/1.1\n Pragma: no-cache\n Cache-Control: no-cache\n

 

 

Unfortunatly, it doesn't work.

 

 

What's is the correct syntax to do this kind of test ?

 

 

Thanks for your help...

 

 

Regards,

 

 

Ju

 

 

 

6 Replies

  • Hi Ju,

     

     

    The exact send string format has changed over the different LTM versions. Which LTM version are you running?

     

     

    Aaron
  • Hi Ju,

     

     

    In 10.2 bigd appends two CRLF's to the end of the monitor send string. In 10.2.0, this was changed so bigd doesn't modify the send string:

     

     

    SOL10655: Change in Behavior: CR/LF characters appended to the HTTP monitor Send string

     

    http://support.f5.com/kb/en-us/solutions/public/10000/600/sol10655.html

     

     

    So for 10.1, you could use something like this:

     

     

    GET http://www.google.fr HTTP/1.1\r\nPragma: no-cache\r\nCache-Control: no-cache

     

     

    Make sure to specify a receive string with text that is only found in a successful response's headers or payload (the first ~5k).

     

     

    When you upgrade to 10.2.0 or higher, you'll want to add \r\n\r\n to the end of the send string.

     

     

    Aaron
  • Thank Hoolio for your help,

     

     

    To improve performance , I have just replaced the GET by the HEAD method , and it works perfectly.

     

     

    HEAD http://www.google.fr HTTP/1.1\r\nPragma: no-cache\r\nCache-Control: no-cache

     

     

    Regards,

     

     

    Ju
  • Thank Hoolio for your help,

     

     

    To improve performance , I have just replaced the GET by the HEAD method , and it works perfectly.

     

     

    HEAD http://www.google.fr HTTP/1.1\r\nPragma: no-cache\r\nCache-Control: no-cache

     

     

    Regards,

     

     

    Ju
  • Thank Hoolio for your help,

     

     

    To improve performance , I have just replaced the GET by the HEAD method , and it works perfectly.

     

     

    HEAD http://www.google.fr HTTP/1.1\r\nPragma: no-cache\r\nCache-Control: no-cache

     

     

    Regards,

     

     

    Ju