• kepware http接口 shell开发


    读取某变量的值(wget

    wget --quiet 
      --method GET 
      --header 'Connection: keep-alive' 
      --header 'Cache-Control: max-age=0' 
      --header 'Upgrade-Insecure-Requests: 1' 
      --header 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' 
      --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' 
      --header 'Accept-Encoding: gzip, deflate, br' 
      --header 'Accept-Language: zh-CN,zh;q=0.9' 
      --header 'cache-control: no-cache' 
      --header 'Postman-Token: 6ca9fd70-0d72-4c86-ba32-0daeb4749ca8' 
      --output-document 
      - 'http://127.0.0.1:39321/iotgateway/read?ids=Channel1.Device1.tag1,Channel1.Device1.tag2'

    读取某变量的值(httpie

    http GET 'http://127.0.0.1:39321/iotgateway/read?ids=Channel1.Device1.tag1,Channel1.Device1.tag2' 
      Accept:'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' 
      Accept-Encoding:'gzip, deflate, br' 
      Accept-Language:'zh-CN,zh;q=0.9' 
      Cache-Control:max-age=0 
      Connection:keep-alive 
      Postman-Token:1431e9b2-b51b-469b-a5e5-ad9c0c58dd59 
      Upgrade-Insecure-Requests:1 
      User-Agent:'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' 
      cache-control:no-cache

    读取某变量的值(curl

    curl --request GET 
      --url 'http://127.0.0.1:39321/iotgateway/read?ids=Channel1.Device1.tag1,Channel1.Device1.tag2' 
      --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' 
      --header 'Accept-Encoding: gzip, deflate, br' 
      --header 'Accept-Language: zh-CN,zh;q=0.9' 
      --header 'Cache-Control: max-age=0' 
      --header 'Connection: keep-alive' 
      --header 'Postman-Token: 85851f90-8df5-4b05-bdf4-bdee4b2b5d0f' 
      --header 'Upgrade-Insecure-Requests: 1' 
      --header 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' 
      --header 'cache-control: no-cache'

    列出所有变量(wget

    wget --quiet 
      --method GET 
      --header 'Connection: keep-alive' 
      --header 'Cache-Control: max-age=0' 
      --header 'Upgrade-Insecure-Requests: 1' 
      --header 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' 
      --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' 
      --header 'Accept-Encoding: gzip, deflate, br' 
      --header 'Accept-Language: zh-CN,zh;q=0.9' 
      --header 'cache-control: no-cache' 
      --header 'Postman-Token: 74f858aa-2039-405b-ab89-4fcf128aa5c2' 
      --output-document 
      - http://127.0.0.1:39321/iotgateway/browse

    列出所有变量的值(httpie

    http GET http://127.0.0.1:39321/iotgateway/browse 
      Accept:'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' 
      Accept-Encoding:'gzip, deflate, br' 
      Accept-Language:'zh-CN,zh;q=0.9' 
      Cache-Control:max-age=0 
      Connection:keep-alive 
      Postman-Token:360df280-51a6-4b57-8b62-22a25dda551c 
      Upgrade-Insecure-Requests:1 
      User-Agent:'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' 
      cache-control:no-cache

    列出所有变量的值(curl

    curl --request GET 
      --url http://127.0.0.1:39321/iotgateway/browse 
      --header 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' 
      --header 'Accept-Encoding: gzip, deflate, br' 
      --header 'Accept-Language: zh-CN,zh;q=0.9' 
      --header 'Cache-Control: max-age=0' 
      --header 'Connection: keep-alive' 
      --header 'Postman-Token: b44f601b-63e2-4959-972c-88ca3c9b4b18' 
      --header 'Upgrade-Insecure-Requests: 1' 
      --header 'User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.81 Safari/537.36' 
      --header 'cache-control: no-cache'
  • 相关阅读:
    什么变量在堆内存里存放,什么变量在栈内存里存放
    iOS应用开发:什么是ARC?
    Stack栈 Heap堆
    iOS中四种实例变量的范围类型@private@protected@public@package
    [转载] iOS应用程序的生命周期
    总结iOS 8和Xcode 6的各种坑
    [转载]对iOS开发中内存管理的一点总结与理解
    企业账号申请以及打包上传
    更换AppleWWDRCA.cer证书
    iOS9适配
  • 原文地址:https://www.cnblogs.com/dXIOT/p/10626557.html
Copyright © 2020-2023  润新知