Commit cded6cbed40d66e94e073d6c3b01d5a14b0bf0f0
1 parent
1a6206eb
Exists in
master
and in
1 other branch
Remoção de "system.out.println".
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
src/main/java/br/com/checker/emag/core/ContentEvaluation.java
... | ... | @@ -502,17 +502,17 @@ public class ContentEvaluation extends Evaluation { |
502 | 502 | |
503 | 503 | newurl = newurl.replace(" ", "%20"); |
504 | 504 | |
505 | - //UrlConvertida = new URL(newurl); | |
505 | + UrlConvertida = new URL(newurl); | |
506 | 506 | |
507 | 507 | |
508 | - System.out.println(newurl); | |
509 | 508 | //Código copiado da classe WebAgent.java para garantir o acesso |
510 | 509 | //aos links da página por meio do cliente da API Jakarta Commons VErsão 3.1 |
511 | 510 | clienteHTTPJakartaCommons = new HttpClient(); |
512 | 511 | clienteHTTPJakartaCommons.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(3,false)); |
513 | 512 | clienteHTTPJakartaCommons.getParams().setParameter("http.protocol.allow-circular-redirects", true); |
514 | 513 | |
515 | - metodoRequisicaoGET = new GetMethod(URLEncoder.encode(newurl, "UTF-8")); | |
514 | + metodoRequisicaoGET = new GetMethod(UrlConvertida.toExternalForm());//URLEncoder.encode(UrlConvertida.toExternalForm(), "UTF-8")); | |
515 | + | |
516 | 516 | metodoRequisicaoGET.setRequestHeader("http.agent", "Jakarta Commons-HttpClient/3.1"); |
517 | 517 | metodoRequisicaoGET.setFollowRedirects(true); |
518 | 518 | ... | ... |