The following HTML code gets this trace 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 hint:
If you want to view trace data quickly on the terminal, use curl
to send the request to the post page, and a text-mode browser to view the status of the request, such as html2text
, elinks
, lynx
or w3m
. For example, using bash
in 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