Forum Discussion

diegonzal_22654's avatar
diegonzal_22654
Icon for Nimbostratus rankNimbostratus
Jul 13, 2012

is my http monitor correct?

Hello,

 

 

Ok, here it goes:

 

 

A user wants me to monitor a login page. If the login page is available then mark the pool member up. If the page is not found then mark the pool member down. The URL of the login page is: https://domain.com/Login/Login

 

 

I created a monitor with the following:

 

1. Send String: GET /Login/Login HTTP/1.1\r\n\Host:\r\nAccept-Encoding:\r\nConnection: close\r\n\r\n

 

2. Properties of monitor are: All Addresses, All Ports

 

3. The "type" of monitor is HTTPS

 

4. No username or password is required (no authentication required)

 

 

When I enable the monitor on the appropriate pool the monitor fails. So:

 

 

1. Is my code wrong?

 

2. Could the page be unavailable? (user says page is available)

 

 

Thank you for any help!!!

 

  • have you tried openssl s_client command? did you get response page?

     

     

    e.g.

     

     

    openssl s_client -connect x.x.x.x:443

     

    GET /Login/Login HTTP/1.1(ENTER)

     

    Host:(ENTER)

     

    Accept-Encoding:(ENTER)

     

    Connection: close(ENTER)(ENTER)
  • I'm not familiar with openssl. What is it and how can I use it for this scenario?

     

     

    Thanks for responding.
  • testing HTTPS with openssl

     

    http://blog.yimingliu.com/2008/02/04/testing-https-with-openssl/

     

     

    hope this helps.