Campoie / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

Add support for not following redirects #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E.g. RestAssured.followRedirects = false

Original issue reported on code.google.com by johan.ha...@gmail.com on 27 Jan 2011 at 1:14

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 16 Dec 2011 at 3:22

GoogleCodeExporter commented 9 years ago
Hi Johan, I am using version 1.6.2 and unable to find this. followRedirects in 
RestAssured.

RestAssured.followRedirects = false; gives compilation error

I also tried
RequestSpecification spec = new 
RequestSpecBuilder().setConfig(newConfig().redirect(redirectConfig().followRedir
ects(true).and().maxRedirects(20))).build();

given().spec(spec)

but doesnt seam to redirect the request (gives 302 but doesnt make request to 
the redirected url)

I will appreciate any help on this.

Thanks,
Sam

Original comment by sambodhi...@gmail.com on 3 Jun 2012 at 10:02