HTTPLang-一种脚本语言,使得编写HTTP请求程序变得简单

网友投稿 780 2022-10-29

HTTPLang-一种脚本语言,使得编写HTTP请求程序变得简单

HTTPLang-一种脚本语言,使得编写HTTP请求程序变得简单

About

HTTPLang is a scripting language that makes writing HTTP request routines simpler.

Current Version

0.2.0

What could I use it for?

Testing APIsWeb Scraping

Installation

Clone the repoRun python setup.py install

Usage

httplang l

Documentation

Important Note

HTTPLang is very strict about things like spaces. Make sure that your code matches the spacing and what not exactly as shown in the examples. If not there will be errors.

Examples

set URL "http://google.com"do GET "/show RESPONSE

set URL "http://google.com"label "loop"do GET /show STATUSgoto "label"

set URL "http://somesite.com"set POSTDATA "username=myUsername&password=myPassword is this"do POST "/login"set COOKIE TMPCOOKIEdo GET "/usercp"

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:Swagger异常定位纪实Swagger设计问题分析
下一篇:tmpin - 添加stdin支持至任何CLI应用程序接受文件输入
相关文章

 发表评论

暂时没有评论,来抢沙发吧~