Link to home
Start Free TrialLog in
Avatar of NishantKashyap
NishantKashyap

asked on

Issue with rest assured request (GET)

If I hit a 'https' URL using POSTMAN , without passing any other data. I get the response.

But If I do the same using rest assured. I get "javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure" , http calls works fine in rest assured with the same code. I tried all the combination like :-

 given().when().get(urlPath);

Open in new window


given().config(RestAssured.config().sslConfig(sslConfig().relaxedHTTPSValidation("TLS"))).when().get(urlPath);

Open in new window


and also using keystore

but nothing worked , same error.

I am curious to know why it works fine in POSTMAN or any other online tool like https://www.hurl.it/

Am I missing something here ?

I also tried a call to https://www.google.com , which works fine with POSTMAN and also rest assured.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial