We use ThousandEyes Monitoring tool to test the reachability of various vendor hosted sites. We use the same tool to monitor various Mercury Gate sites including ServiceDesk URL ( https://capws.cheetah.com/ServiceDesk2/ ), but we are not receiving HTTP 200 response to my cURL request from that tool.
But when I access base URL of that, I do get HTTP 200 response, but not with the full Service Desk URL.
Here are the output responses for both those cURLs.
PS C:\Users\jpawar> curl -v https://capws.cheetah.com/ServiceDesk2/
VERBOSE: GET https://capws.cheetah.com/ServiceDesk2/ with 0-byte payload
curl : Server Error in '/ServiceDesk2' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application
prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be
viewed by browsers running on the local server machine.
Details: To enable the details of this specific error message to be viewable on remote machines, please create a
<customErrors> tag within a "web.config" configuration file located in the root directory of the current web
application. This <customErrors> tag should then have its "mode" attribute set to "Off".
<!-- Web.Config Configuration File -->
<configuration>
<system.web>
<customErrors mode="Off"/>
</system.web>
</configuration>
Notes: The current error page you are seeing can be replaced by a custom error page by modifying the "defaultRedirect" attribute of the application's <customErrors> configuration tag to point to a custom error page URL. <!-- Web.Config Configuration File --> <configuration> <system.web>
<customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
</system.web>
</configuration>
At line:1 char:1
+ curl -v https://capws.cheetah.com/ServiceDesk2/
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
PS C:\Users\jpawar> curl -v https://capws.cheetah.com
VERBOSE: GET https://capws.cheetah.com/ with 0-byte payload
VERBOSE: received 146-byte response of content type text/html
StatusCode : 200
StatusDescription :
Content : <!DOCTYPE html>
<html lang="en">
<head>
<title>Cheetah Web Server</title>
</head>
<body>
<div>Server is reachable.</div>
</body>
</html>
RawContent : HTTP/1.1 200
Accept-Ranges: bytes
Cache-Control: private,no-cache="set-cookie"
Content-Type: text/html
Date: Sat, 06 May 2023 15:28:49 GMT
ETag: W/"146-1679513206306"
Last-Modified: Wed, 22 Mar...
Forms : {}
Headers : {[Accept-Ranges, bytes], [Cache-Control, private,no-cache="set-cookie"], [Content-Type,
text/html], [Date, Sat, 06 May 2023 15:28:49 GMT]...}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : mshtml.HTMLDocumentClass
RawContentLength : 146
My request is to address below
Please help us to ensure we get HTTP 200 response for full ServiceDesk URL cURL query too.