HTTP testing on the command line, is there anything better than cURL?

Is there a command line utility where you can simply configure the HTTP request and return the trace back to the console?

Also, specifying a method will simply be a great feature instead of a method that is a side effect.

I can get all the information I need with cURL, but I can't figure out how easy it is to display it without dropping all the files.

I want the output to display the sent headers of the received headers and message body.

There must be something, but I could not find it. I realized that I should ask before I go and write it myself.

+3
source share
6 answers

, c-smile :

script cURL:

curl --dump-header - "$@"

- [dash] stdout - , , wget unix. -, , . wget:

wget --save-headers -qO - "$@"
+2

Telnet ( , ) -. telnet http-, HTTP 1.1 GET, .

http://support.microsoft.com/kb/279466

A Google .

0

To include HTTP headers in the output file (as well as the server response), use the curls -i/ option --include. For instance:

curl -i "http://www.google.com/"

Here's what man curlthis setting says :

   -i/--include
      (HTTP)  Include  the  HTTP-header in the output. The HTTP-header
      includes things like server-name, date of  the  document,  HTTP-
      version and more...

      If  this  option  is  used  twice, the second will again disable
      header include.
0
source

Use telnet on port 80

For instance:

telnet telehack.com 80
GET / HTTP/1.1
host: telehack.com
<CR>
<CR>

<CR> means Enter

0
source

Try http for example

http -v example.org

Further at https://httpie.org

It even includes a page to try online:

https://httpie.org/run

0
source

All Articles