[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script usando telnet e requisitando o HTTP



On 11/7/07, Felipe Augusto van de Wiel (faw) <faw@funlabs.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 05-11-2007 12:02, Rodrigo Tavares wrote:
> > Pessoal,
> >
> >
> > Gostaria de fazer um script com seguinte comando:
> >
> > pc:~$ telnet 192.168.100.100 80
> > Trying 192.168.100.100...
> > Connected to 192.168.100.100.
> > Escape character is '^]'
> >
> > Logo quando vem essa mensagem tenho de digitar GET
> > para gerar um requisição ao host selecionado. Como
> > fazer isso de forma automática ?
> >
> > Ou seja executando o comando usando o GET.
>
>         Você tem que fazer isso com telnet? Não poderia
> usar o 'lynx -source' por exemplo?
>
>
>         Abraço,
> - --
> Felipe Augusto van de Wiel (faw)
> "Debian. Freedom to code. Code to freedom!"
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHMSaMCjAO0JDlykYRAj20AKCMrsot82vY/Hn77o+lBgGBRqt94ACfbFoH
> eS0rM694Wvn67JNeaezNf3g=
> =8dh3
> -----END PGP SIGNATURE-----

Tenta isso:

$ cat << EOF | telnet servidor 80
GET blablabla
EOF


-- 
Max



Reply to: