The following HTML code gets this tracking data:
<html>
<body onload="document.aux.submit()">
<form name="aux" method="POST" action="https://www2.correios.com.br/sistemas/rastreamento/resultado_semcontent.cfm">
<input name="Objetos" value="PO117284423BR">
</form>
</body>
</html>
A tip:
If you want to view tracking data quickly on the terminal, use the curl
to send the request to the post office page, and a text browser to view the status of the order, such as html2text
, elinks
, lynx
or w3m
. For example, using the bash
at the terminal of Ubuntu
:
sudo apt install html2text
curl -sS -X POST -d Objetos=PO117284423BR https://www2.correios.com.br/sistemas/rastreamento/resultado_semcontent.cfm | html2text
or
sudo apt install elinks
curl -sS -X POST -d Objetos=PO117284423BR https://www2.correios.com.br/sistemas/rastreamento/resultado_semcontent.cfm | elinks -dump -dump-color-mode 1
or
sudo apt install lynx
curl -sS -X POST -d Objetos=PO117284423BR https://www2.correios.com.br/sistemas/rastreamento/resultado_semcontent.cfm | lynx --stdin --dump
or
sudo apt install w3m
curl -sS -X POST -d Objetos=PO117284423BR https://www2.correios.com.br/sistemas/rastreamento/resultado_semcontent.cfm | w3m -dump -T text/html
The WS documentation of the post office is https://www.correios.com.br/para-voce/correios-de-a-a-z/pdf/traceobjects/manual_tracking objectsws.pdf
– Felipe Miranda
Use http://linktrack.mooo.com/ or simply make http://linktrack.mooo.com/RX704890085CN/html. It’s very fast.
– Chipy Tux