Forum Discussion

Chris_199321's avatar
Chris_199321
Icon for Nimbostratus rankNimbostratus
Sep 27, 2016

How to send http post with https using irule

I am testing google Captcha 2.0 using irule. When F5 try to post the challenge result to https://www.google.com/recaptcha/api/siteverify, F5 posts it using http instead of https.

 

Please find the irule related to the connection to google as follow,

 

set conn [connect -timeout 1000 -idle 30 -protocol TCP $google_ip:443] send -timeout 1000 -status send_status $conn $recaptcha_verify_request

 

Please help with posting the challenge with HTTPS.

 

Thanks

 

1 Reply

  • Hi Chris,

    a SIDEBAND connection does not have a build-in SSL support.

    You have to point your SIDEBAND connection to a (helper) HTTP Virtual Server (e.g. HTTP:8888) that has an Server_SSL_Profile applied and finally points to a HTTPS:443 pool/node (aka. the https://GoogleSite).

    Then change the syntax of your iRule to...

    set conn [connect -timeout 1000 -idle 30 YOUR_VIRTUAL_NAME] 
    send -timeout 1000 -status send_status $conn $recaptcha_verify_request
    

    Cheers, Kai