Re: http request, which command is good for testing

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



On Mon, 6 Dec 2010, Rudi Ahlers wrote:

> On Mon, Dec 6, 2010 at 8:52 PM, adrian kok <adriankok2000@xxxxxxxxxxxx> wrote:
>> Which command is good for http testing?
>
> links
> lynx
> telnet
> wget
> etc

I like curl because it defaults to printing to standard output. (You 
can do it with wget too, of course, it's just not standard behavior.) 
The trick is that curl has just slightly fewer than 1,000 command-line 
options to learn. :-) My favorite is -I (--head), which tells curl to 
grab only the HTTP headers.

"elinks -dump 1 -dump-width 72 -no-references -no-numbering" can be 
immensely useful.

The wrapper scripts (GET, HEAD, POST) installed with the 
perl-libwww-perl package can be used both on their own and as nice 
examples of web programming with Perl.

-- 
Paul Heinlein <> heinlein@xxxxxxxxxx <> http://www.madboa.com/
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux