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