Jump to content
Sign in to follow this  
camurso_

Comando Wget

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?

Share this post


Link to post
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 :(

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • 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.