博客
关于我
linux上调用接口命令
阅读量:789 次
发布时间:2023-02-02

本文共 851 字,大约阅读时间需要 2 分钟。

在实际操作中,对于如何在Linux系统上调用接口,可以按照以下步骤进行:

  • 调用现网SPI接口:

    ping 10.211.93.48telnet 127.0.0.1 8080
  • 调用Hyp_testing SPI接口:

    echo '157105312831' | curl -X POST -H 'Content-type:text/xml' -d @$- http://10.211.93.142:9093/hyspi/getCatelogIdByVcode
  • 调用相关接口:

    • 使用cURL调用接口:
    curl -t http://10.211.93.48:9088/r/getCatelogIdByVcodemsisdn=15088775046
    • 发送POST请求:
    curl -d '15088775046' -H 'Content-type:text/xml' -v -X POST http://10.211.93.48:9088/r/
  • 检查日志文件:

    • 查看实时日志更新:
    tail -f 20171106.logtail -f HY_SPI.log
    • 筛选特定日志信息:
    tail -f HY_SPI.log | grep 'GetCatelogIdByVcodeServlet'tail -f HY_SPI.log | grep 'GetCatelogIdByVcode'
    • 检索入口相关日志:
    grep 'Enter GetCatelogIdByVcode service' portal.loggrep '################################msisdn = ' portal.log
  • 关于Hyp_testing接口的变更:

    • 之前的接口地址为:http://10.211.93.142:8088/hyspi/getCatelogIdByVcode
    • 现在使用的地址为:http://10.211.93.142:9093/hyspi/getCatelogIdByVcode

    转载地址:http://euzfk.baihongyu.com/

    你可能感兴趣的文章
    Linux——基础入门(2)
    查看>>
    Linux——文件的系统调用
    查看>>
    Linux——磁盘和文件系统(一)
    查看>>
    Linux——缓冲区与FLIE*的原理简单实现
    查看>>
    Linux——进程地址空间
    查看>>
    Linux——进程控制
    查看>>
    Linux——进程池
    查看>>
    Linux——静态库
    查看>>
    Linux—文件系统
    查看>>
    Linux、Linux操作系统、GUN、GPL
    查看>>
    Linux、Windows渗透测试靶场手动搭建实战(附靶场安装包与安装脚本)
    查看>>
    linux一切皆文件之Unix domain socket描述符(二)
    查看>>
    Linux上Java的安装与配置
    查看>>
    linux上传下载覆盖文件的命令
    查看>>
    linux上修改容器网卡docker0为固定ip
    查看>>
    Linux上压缩目录以及目录下的所有文件
    查看>>
    linux上可以运行dll吗
    查看>>
    Linux上在文件夹上层新建一个同名目录
    查看>>
    linux上安装eclipse并配置mapreduce程序开发环境
    查看>>
    Linux上安装Git时bash: ./cofigure.ac: No such file or directory的解决
    查看>>