Open GoogleCodeExporter opened 9 years ago
[deleted comment]
Anybody looking at these issues ?
Original comment by dekleijn...@gmail.com
on 18 May 2015 at 11:00
Yes I've seen it but I haven't had the time to look into it. I'm working on
this project on my spare time.
Original comment by johan.ha...@gmail.com
on 18 May 2015 at 12:02
Let me know if I have to provide more details...
Current situation is that I have to use apache http client for some testscript
instead of Rest Assured.
Original comment by dekleijn...@gmail.com
on 24 May 2015 at 7:33
What does the code look like when you're using HTTP Client?
Original comment by johan.ha...@gmail.com
on 26 May 2015 at 9:13
Herewith the code I'm using with HTTP client
System.setProperty("javax.net.ssl.trustStore", new
File("src/test/resources/myKeystore").getAbsolutePath());
System.setProperty("javax.net.ssl.trustStorePassword", "changeit");
HttpClient client = HttpClientBuilder.create().build();
HttpPost post = new HttpPost("localhost/rest/session");
post.addHeader(HttpHeaders.CONTENT_TYPE, "application/json");
StringEntity params = new StringEntity("some body");
post.setEntity(params);
HttpResponse response = client.execute(post);
System.out.println("Response Code : " +
response.getStatusLine().getStatusCode());
Original comment by dekleijn...@gmail.com
on 26 May 2015 at 10:01
I suppose you ought to be able to do this using setParam in HttpClientConfig?
https://code.google.com/p/rest-assured/wiki/Usage#HTTP_Client_Config
Original comment by johan.ha...@gmail.com
on 26 May 2015 at 10:30
Do you mean this:
RestAssured.config =
newConfig().httpClient(httpClientConfig().setParam("javax.net.ssl.trustStore",
new
File("src/test/resources/myKeystore").getAbsolutePath()).setParam("javax.net.ssl
.trustStorePassword", "changeit"));
Because the code above is not working..
Original comment by dekleijn...@gmail.com
on 26 May 2015 at 1:04
Original issue reported on code.google.com by
dekleijn...@gmail.com
on 28 Apr 2015 at 9:57