使用矩阵参数执行获取请求? [英] Perform Get request with matrix parameters?
本文介绍了使用矩阵参数执行获取请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用矩阵参数执行GET请求。
http:// localhost:8080 / car / bmw; color = red
这个问题已经有答案了创建一个带有矩阵参数的GET请求
,但是这里并没有真正的一步一步的解释。
解决方案
你也可以使用rest-assured更容易。
given()。urlEncodingEnabled(false).when()。 get( http:// localhost:8080 / car / bmw; color = red )
I want to perform a GET request using matrix parameters. http://localhost:8080/car/bmw;color=red
There is allready this question answered Creating a GET request with matrix parameters ,but there is not real step by step explanation there.
解决方案
Also you can do it easier still using rest-assured.
given().urlEncodingEnabled(false).when(). get("http://localhost:8080/car/bmw;color=red")
这篇关于使用矩阵参数执行获取请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文