首页 > Web开发 > 详细

kepware http接口 shell开发

时间:2019-03-30 13:37:59      阅读:209      评论:0      收藏:0      [点我收藏+]

 

读取某变量的值(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‘

 

kepware http接口 shell开发

原文:https://www.cnblogs.com/dXIOT/p/10626557.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!