【发布时间】:2015-02-25 13:41:05
【问题描述】:
我在http://localhost/testing/validateLicence 提供了一个许可证验证网络服务
我想编写一个 shell 脚本,我必须通过 webservice call 传递许可证密钥。如果 webservice 返回 200 OK,则执行 shell 脚本中的进一步步骤,否则将终止执行
请根据我的要求帮助我调用 Web 服务并比较 if/else 块中的 http 响应代码
【问题讨论】:
-
恕我直言,您的许可证检查需要验证身份。
标签: web-services shell unix curl wget