Hi.
I am traying to connect to this link
http://www.orbital.pt/atocar.php but i don´t know why the site is nor responding nothing.
The HTTP header is this one:
GET /atocar.php HTTP/1.1
Host:
www.orbital.ptUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
The code that i have done is this one :
alias orbital3 {
Sockclose Orbital3
SockOpen Orbital3
www.orbital.pt 80
}
On *:sockopen:Orbital3:{
if ($sockerr) {
/echo -s XBC Socket Error Falha na conecção (# $+ $sock($sockname).wserr $+ ) $sock($sockname).wsmsg
}
else {
sockwrite -n Orbital3 GET /atocar.php HTTP/1.1
sockwrite -n Orbital3 Host:
www.orbital.pt sockwrite -n Orbital3 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.8.0.12) Gecko/20070508 Firefox/1.5.0.12
sockwrite -n Orbital3 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
sockwrite -n Orbital3 Accept-Language: pt-br,pt;q=0.8,en-us;q=0.5,en;q=0.3
sockwrite -n Orbital3 Accept-Encoding: gzip,deflate
sockwrite -n Orbital3 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
sockwrite -n Orbital3 Keep-Alive: 300
sockwrite -n Orbital3 Connection: keep-alive
sockwrite -n Orbital3 Referer:
http://www.orbital.pt/ }
}
on *:sockread:Orbital3: {
set -u0 %Bytes 900
sockread $var( %Bytes, 1).value &data
echo -s $SockName
echo -s $bvar( &data, 0) $bvar( &data, 1, %Bytes).text
}
on *:sockclose:Orbital3: {
echo -s $SockName close
}
Thanks for all