Forum Discussion

Mayank_Shukla's avatar
Mayank_Shukla
Icon for Altostratus rankAltostratus
Jul 10, 2017

curl test output

Hi

 

I have to configure below https health send string with receive string as 200 OK.

 

GET /r/test HTTP/1.1\r\nHost: abc.xyz.co.in\r\nConnection: Close\r\n\r\n

 

Below is the curl test output. Here 172.16.1.2 is the one of pool member IPs where this health monitor will be applied.

 

curl -v http://172.16.1.2:443/abc.xyz.co.in * About to connect() to 172.28.239.26 port 443 (0) * Trying 172.16.1.2... connected * Connected to 172.16.1.2 (172.16.1.2) port 443 (0)

 

GET /abc.xyz.co.in HTTP/1.1 User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 OpenSSL/1.0.1l zlib/1.2.3 libidn/0.6.5 Host: 172.16.1.2:443 Accept: /

 

Could someone advise me please what is happening here from seeing the curl test output. Do I need to ask server team to configure 200 ok as receive string on server side or else what should be configured on the server side . Why we are not getting any response from server side on running curl test...

 

1 Reply

  • nathe's avatar
    nathe
    Icon for Cirrocumulus rankCirrocumulus

    It looks like you are trying to curl to http, not https, also there may be certificate errors. Does this work better for you?

    curl -vk https://172.16.1.2:443/abc.xyz.co.in

    The k switch ignores certificate issues.

    N