Basic HTTP Authentication


Actually, I want to write a script that will simply check if Basic HTTP Authentication is required.

Provide the URL and the Script will return “Basic HTTP Authentication” : Passed else failed.


@jahved_cassim - What you are looking for should be possible with an API test in Synthetics. You can just do a basic test similar to the example API test but instead of checking for a 200 response, simply look for a 401 and it should be what you’re looking for.

1 Like

Thanks for the Reply and for the Information. Below the Process i have done can you please give me some suggestions on how to debug.

  1. created an slack channel and integrated to the NewRelic App
  2. In newrelic Alerts, Notification Channel I have created an webhook give slack channel name and webHook url and this Url doesn’t have any = signs

3)Basic Auth Filed left Empty

  1. used default Payload information

  2. Tested but got reply of 500 Error

Hi there @moturukalyan - This Level Up post goes into great detail about webhooks and may point you in the right direction.

If you don’t find what you need in that doc, let us know and please include any additional information you can.

1 Like

Thanks for the post. I am successfully able to integrate to the slack.

1 Like

Awesome! Glad to hear it!