Send post to web and get results - java jsoup

0

I am trying to send a post to this page: link and get the result of the status of a guide (example: 62900001810) but I do not see a localized guide and when I enter the page try the number shows me the details well.

Here the code:

    Connection.Response Form = Jsoup
    .connect("http://www.coordinadora.com/portafolio-de-servicios/servicios-en-linea/rastrear-guias/#rastreo")
    .method(Connection.Method.GET).execute();

    Document document = Jsoup
    .connect("http://www.coordinadora.com/portafolio-de-servicios/servicios-en-linea/rastrear-guias/#rastreo")
    .data("coor_guia_home", guiaNumero.trim()).cookies(Form.cookies()).post();

and when paging the document I get this:

<div class="coor_alert_msg">
      Guia no localizada
     </div> 

I should get something like this:

Your help please.

    
asked by Germán 10.04.2018 в 19:44
source

0 answers