小编dan*_*res的帖子

放心的请求不起作用

我正在使用Rest-Assured来测试我的Rest API.自从运行以来,webservice似乎运行正常

    curl -u "admin:admin" http://localhost:8888/users/
Run Code Online (Sandbox Code Playgroud)

我把我的用户称为json.

然后,当尝试使用Rest-Assured的简单请求时

 RestAssured.authentication = basic("admin", "admin");

  expect().statusCode(200).when().get("http://localhost:8888/users/");
Run Code Online (Sandbox Code Playgroud)

给了我输出

    Exception in thread "main" org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8888 refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
…
Run Code Online (Sandbox Code Playgroud)

这可能是什么?

java rest rest-assured

5
推荐指数
1
解决办法
2733
查看次数

Send IV encrypted or not?

I'm using CBC mode. I'm thinking of sending the IV encrypted in ECB mode(since it is only a block), instead of sending the "plain" IV. Will i gain some security?

security cryptography block-cipher

1
推荐指数
1
解决办法
166
查看次数

标签 统计

block-cipher ×1

cryptography ×1

java ×1

rest ×1

rest-assured ×1

security ×1