您的位置:58脚本 > ida查看字符串 iris 查询字符串参数

ida查看字符串 iris 查询字符串参数

2023-05-14 14:32 iris教程

ida查看字符串 iris 查询字符串参数

ida查看字符串 iris 查询字符串参数

ida查看字符串

func main() {
    app := iris.Default()

    // Query string parameters are parsed using the existing underlying request object.
    // The request responds to a url matching:  /welcome?firstname=Jane&lastname=Doe
    app.Get("/welcome", func(ctx iris.Context) {
        firstname := ctx.URLParamDefault("firstname", "Guest")
        lastname := ctx.URLParam("lastname") // shortcut for ctx.Request().URL.Query().Get("lastname")

        ctx.Writef("Hello %s %s", firstname, lastname)
    })
    app.Listen(":8080")
}

以上代码中我们可以在http://localhost:8080/welcome后跟上query参数来修改页面数据,例如



阅读全文
以上是58脚本为你收集整理的ida查看字符串 iris 查询字符串参数全部内容。
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
相关文章
© 2024 58脚本 58jiaoben.com 版权所有 联系我们
桂ICP备12005667号-28 Powered by CMS