.given()
.redirects()
.follow(true)
.cookie("value", session)
.when()
.get("https://www.example.com/v1/user/authorise");
I've checked the HTTP headers and there is no location header. I have seen another example using this from the java.net library:
URLConnection urlConn = myUrl.openConnection();
urlConn.getURL().toString();
--
You received this message because you are subscribed to the Google Groups "REST assured" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
Hi Johan, one question regarding rest assured redirects, when I set .redirect(redirectConfig().followRedirects(false)) - it doesn't actually make the redirect or it just means that the rest assured api stops following it?
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.
protected RequestSpecification spec() {
RestAssuredConfig restAssuredConfig = RestAssuredConfig.config()
.redirect(redirectConfig().followRedirects(false))
.objectMapperConfig(new ObjectMapperConfig().jackson2ObjectMapperFactory(
(aClass, s) -> new ObjectMapper().configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false)
));
To unsubscribe from this group and stop receiving emails from it, send an email to rest-assured+unsubscribe@googlegroups.com.