Commit 610f42174886eefcf4a07ef33198a185ea503dba

Authored by gibran
1 parent 01b0b3d6

Substituição do agente de conexão (jakarta).

src/main/java/br/com/ases/infra/WebChecker.java
... ... @@ -45,7 +45,8 @@ public class WebChecker {
45 45  
46 46 public WebChecker withGetRequest() {
47 47 this.method = new GetMethod(this.url);
48   - this.method.setRequestHeader("user-agent", "Mozilla/5.0");
  48 + //this.method.setRequestHeader("user-agent", "Mozilla/5.0");
  49 + this.method.setRequestHeader("http.agent", "Jakarta Commons-HttpClient/3.1");
49 50 this.method.setFollowRedirects(true);
50 51 return this;
51 52 }
... ...