[nycphp-talk] generating a post request from the command line

Michael Sims jellicle at
Thu Mar 27 12:44:21 EST 2003

On Thursday 27 March 2003 12:35 pm, Chris Snyder wrote:

> Does anybody know of a unix command or a perl script to generate an
> HTTP post request from stdin?
> I should do it in PHP, I know, but I don't want to make command-line
> PHP a requirement for my app.

The libwww-perl library should help you out.  In Debian at least, it 
includes /usr/bin/lwp-request , a command-line interface for all your 
GET, HEAD, POST and PUT needs.

Michael Sims

More information about the talk mailing list