From e71345f045e1379cc7659fc5c05bc9ff43543b63 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Fri, 15 Feb 2019 16:55:11 -0500 Subject: [PATCH] Updated Notify_Custom_XML (markdown) --- Notify_Custom_XML.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Notify_Custom_XML.md b/Notify_Custom_XML.md index 0aeaa7d..70f230a 100644 --- a/Notify_Custom_XML.md +++ b/Notify_Custom_XML.md @@ -47,4 +47,23 @@ Send a XML notification to our web server listening on port 80: ```bash # Assuming our {hostname} is xml.server.local apprise xml://xml.server.local +``` +### Header Manipulation +Some users may require special HTML headers to be present when they post their data to their server. This can be accomplished by just sticking a hyphen (**-**) in front of any parameter you specify on your URL string. +```bash +# Below would set the header: +# X-Token: abcdefg +# +# Assuming our {hostname} is localhost +# Assuming our {port} is 8080 +apprise "xml://localhost:8080/path/?-X-Token=abcdefg" + +# Multiple headers just require more entries defined with a hyphen in front: +# Below would set the headers: +# X-Token: abcdefg +# X-Apprise: is great +# +# Assuming our {hostname} is localhost +# Assuming our {port} is 8080 +apprise "xml://localhost:8080/path/?-X-Token=abcdefg&-X-Apprise=is%20great" ``` \ No newline at end of file