Coder Social home page Coder Social logo

Comments (8)

johanhaleby avatar johanhaleby commented on May 22, 2024
[deleted comment]

from rest-assured.

johanhaleby avatar johanhaleby commented on May 22, 2024
Anybody looking at these issues ?

Original comment by [email protected] on 18 May 2015 at 11:00

from rest-assured.

johanhaleby avatar johanhaleby commented on May 22, 2024
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 [email protected] on 18 May 2015 at 12:02

from rest-assured.

johanhaleby avatar johanhaleby commented on May 22, 2024
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 [email protected] on 24 May 2015 at 7:33

from rest-assured.

johanhaleby avatar johanhaleby commented on May 22, 2024
What does the code look like when you're using HTTP Client?

Original comment by [email protected] on 26 May 2015 at 9:13

from rest-assured.

johanhaleby avatar johanhaleby commented on May 22, 2024
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 [email protected] on 26 May 2015 at 10:01

from rest-assured.

johanhaleby avatar johanhaleby commented on May 22, 2024
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 [email protected] on 26 May 2015 at 10:30

from rest-assured.

johanhaleby avatar johanhaleby commented on May 22, 2024
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 [email protected] on 26 May 2015 at 1:04

from rest-assured.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.