rest-assured / rest-assured

Java DSL for easy testing of REST services
Apache License 2.0
6.85k stars 1.88k forks source link

HTTPS request on port 8080 #1024

Open fogXploit opened 6 years ago

fogXploit commented 6 years ago

I tried to send a request on an url like https://mywebsite:8080/testing but it seems that this is not working. I tried to set the port with RestAssured.port=8080; and given().port(8080).[...] but nothings works. It will allways call the URL https://mywebsite:443/testing or https://mywebsite/testing.

Is there a fast workaround or is it possible to fix this issue?

dr29bart commented 5 years ago

share you code snippet. it works for me in 4.0.0:

 given()
            .log().all()
            .when().get("https://mywebsite:8080/testing");