Commit 610f42174886eefcf4a07ef33198a185ea503dba
1 parent
01b0b3d6
Exists in
master
and in
1 other branch
Substituição do agente de conexão (jakarta).
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/main/java/br/com/ases/infra/WebChecker.java
@@ -45,7 +45,8 @@ public class WebChecker { | @@ -45,7 +45,8 @@ public class WebChecker { | ||
45 | 45 | ||
46 | public WebChecker withGetRequest() { | 46 | public WebChecker withGetRequest() { |
47 | this.method = new GetMethod(this.url); | 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 | this.method.setFollowRedirects(true); | 50 | this.method.setFollowRedirects(true); |
50 | return this; | 51 | return this; |
51 | } | 52 | } |