Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Testing a health monitor with CURL get

When using CURL to test a health monitor with a GET, can you include a username and password

0
Rate this Question
Comments on this Question
Comment made 05-Nov-2017 by F5_Digger 220

It's totally up to the application side. If the application requires authentication to access the HTTP page you should specify username and password. If not, you don't need to specify username and password.

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Do you mean http authentication, if yes, use this:
curl --user user:pass http://xyz.com/abc.page

0
Comments on this Answer
Comment made 05-Nov-2017 by Only1masterblaster 608

It depends whether healthcheck pages are set as authenticated page. Your F5 health monitor should reflect this authentication. Practically, it will be preferred to setup health monitor as non-authenticated since unplanned password change may bring services down. You can use curl to verify.
curl -vk -u user:password -X GET https://1.2.3.4

0