New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


HTTP Header Monitoring

Votes:

0

Your Vote:

Up

Down

Hi, is it possible to monitor HTTP Headers in PRTG? For example i would like to monitor if in the HTTP response the header:

content-encoding: gzip

is included.

Or if a specific value is set in the "content-security-policy" Header.

Thank you + BR

header http monitoring prtg

Created on Nov 23, 2018 12:28:12 PM by  schtebo (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Hi there,

Unfortunately, there is no native sensor to check this. However in PowerShell you can check for certain headers and their value:

$site = Invoke-WebRequest -Uri "https://cspvalidator.org/" -UseBasicParsing
$site.Headers["content-security-policy"]

Maybe you can use this snippet to build a script that suits your needs:
https://kb.paessler.com/en/topic/71356-guide-for-powershell-based-custom-sensors

Best regards.

Created on Nov 23, 2018 2:32:33 PM by  Dariusz Gorka [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.