When trying to monitor a URL using the WebMonitor agent the following alarm appears:
---
"Cannot access the URL https://myWebPage.com/. Client submits a request to the server that does not comply with the HTTP protocol, or the server returns the contents of the HTTP protocol that does not meet the requirements."
---
In the log files the following error can be found:
---
2019-02-17 17:27:28.702 ERROR [COLLECTION[0]-5] com.quest.monitoring.agent.webmonitor.collector.URLCollectionTask - An unexpected error occurred which may cause undesired behaviour. You may want to contact customer support if you see this error again: Unexpected error occurred, if you saw this very often please generate a debug 1 support bundle and contact with Dell Customer Support. java.util.MissingFormatArgumentException: Format specifier '%d'
---
When setting the Agent Manager into debug mode, further details are logged in the WebMonitor agent log file:
---
2019-02-22 11:07:55.748 DEBUG [COLLECTION-ADDON[1]-1] com.quest.monitoring.agent.webmonitor.collector.URLCollectionTask - Failed to access the url : https://myWebPage.com/ due to ClientProtocolException org.apache.http.client.ClientProtocolException
[...]
Caused by: org.apache.http.ProtocolException: Invalid redirect URI: https://myWebPage.com/page.aspx?accountname=myDomain\myUser
[...]
Caused by: java.net.URISyntaxException: Illegal character in query at index 53: https://myWebPage.com/page.aspx?accountname=myDomain\myUser
---
The unsafe character needs to be encoded.
The encoding for "\" is "%5C".
Further details about encoding can be found here. Also there are Encoding Webpages available which will help to replace the unsafe characters.