Forum Discussion

John_Lin_106399's avatar
John_Lin_106399
Icon for Nimbostratus rankNimbostratus
Jun 22, 2006

HTTP monitoring sytax -- Monitors

I'm trying to create a custom HTTP monitor.

 

 

the send string I want to send is

 

 

GET /\r\n

 

Host:\r\n

 

\r\n

 

 

I tried several variation with ' and " and but it still doesn't like the syntax.

 

 

How do I send control characters as part of the monitor's send string?

 

 

please advise

2 Replies

  • Deb_Allen_18's avatar
    Deb_Allen_18
    Historic F5 Account
    Hi John --

     

     

    In v9, I'd use something like this send string:

     

     

    GET / HTTP/1.0\nHost: hostname.com

     

     

    (adding HTTP/1.0 ensures the connection is not kept alive -- unnecessary overhead for a monitor connection.)

     

     

    I believe the required terminating double linefeed is inserted automatically.

     

     

    This AskF5 solution details the escape sequences now allowed: Click here

     

     

    HTH

     

    /deb
  • If you want to use HTTP/1.1 and close the connection after the request is complete, you can use this format:

    
    GET /servertest.html HTTP/1.1\nHost: www.yoursite.com\nConnection: close\n

    From SOL3224 (Click here

    Aaron