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

Re: http tool...



/usr/bin/GET <url>

output to stdout.

/usr/bin/POST

Wrappers around lwp-request, a Perl script.
(most distros, e.g. Fedora and Debian)
Ed

On 2/9/06, Robert Citek <rwcitek@alum.calberkeley.org> wrote:
>
> On Feb 8, 2006, at 5:09 PM, Ken Keefe wrote:
> > Is there a simple command line tool that allows you to do some basic
> > http requests (besides telnet)? For example, send a GET request to a
> > webserver.
>
> A very useful tool is netcat (aka nc), which is available on Knoppix
> 4.0.2.  Some examples:
>
> $ echo "GET /" | nc cwelug.org 80
>
> $ echo -e 'HEAD /  HTTP/1.0\n' | nc cwelug.org 80
>
> $ ( message='foo=123&bar=456' ;
> echo -en "POST /cgi-bin/env.cgi HTTP 1.1
> Content-type: text/plain
> Content-Length: $(echo -n "$message"| wc -c)
>
> $message" |
> nc cwelug.org 80 )
>
> Is that what you were looking for?  Either way, please let us know
> what you tried and how things went.
>
> Regards,
> - Robert
> http://www.cwelug.org/downloads
> Help others get OpenSource software.  Distribute FLOSS
> for Windows, Linux, *BSD, and MacOS X with BitTorrent
>
> -
> To unsubscribe, send email to majordomo@silug.org with
> "unsubscribe silug-discuss" in the body.
>

-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.