Jump to content

Comando Wget


camurso_
 Share

Recommended Posts

Boas a todos.

Alguém conhece este comando? Queria fazer um pedido http para um servidor e queria que o responce aparecesse na linha de comandos, ou seja, queria ver o html retornado a aparecer na consola, para depois o poder tratar. Alguém sabe como?

Link to comment
Share on other sites

-S

--server-response

Print the headers sent by HTTP servers and responses

sent by FTP servers.

certo, já sabia, mas assim só consigo ver o header...

Já experimentei fazer

telnet ip_da_maquina 80

get

Só que, estupidamente, o que vejo é o html do erro 500 enviado pelo tomcat.

Mas o servidor está a correr :(

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.