Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions TCPCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,14 @@ def web_check(self):
if re.findall('^/', self.agentMgr.agent_option("URLPATH")):
# This means we have a preceeding /
FINALPATH="%s" % self.agentMgr.agent_option("URLPATH")
# Check if the URL Path is a full HTTP URI
elif re.findall('^http://', self.agentMgr.agent_option("URLPATH")):
# This means we have a preceeding http://
FINALPATH = "%s" % self.agentMgr.agent_option("URLPATH")
# Check if the URL Path is a full HTTPS URI
elif re.findall('^https://', self.agentMgr.agent_option("URLPATH")):
# This means we have a preceeding https://
FINALPATH = "%s" % self.agentMgr.agent_option("URLPATH")
else:
FINALPATH="/%s" % self.agentMgr.agent_option("URLPATH")
else:
Expand Down