Valued Contributor.
Valued Contributor.

SM Support Tip: How to verify availability of SM web client from a Linux server?

curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction.


As SM web client is acceptting a http[s] request from browser, so we can use curl to imitate a request send from browser, below is an example:


curl –iku falcon:123456 https://localhost:8080/webtier-9.52.index.do?


In above parameter i indicates include the heads of request, k indicates allow connection without ssl certificate if the server is SSL(this depends on the server as well), and u specified username and password are followed, in the example, falcon and 123456


You will be returned with a html, it contains a return code which is http code, the following linked can be used to check what the code means:


Labels (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.