VicBalta has asked for the wisdom of the Perl Monks concerning the following question:
any help would be great thanks#!/usr/bin/perl use IO::Socket; $server = '128.113.152.89'; $port = 2345; my $server = new IO::Socket::INET ( Listen => 5, LocalAddr => $server, LocalPort => 2345, Proto => 'tcp' ) ; die "can't set up server" unless $server; $client = $server->accept(); while (<$client>) { print $_; if($_ =~ /POST/){ #want to get posted variables here } } $server->close(); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Reading in Post Variables from a socket
by chromatic (Archbishop) on Nov 14, 2002 at 20:16 UTC | |
|
Re: Reading in Post Variables from a socket
by pg (Canon) on Nov 14, 2002 at 19:38 UTC | |
by pg (Canon) on Nov 14, 2002 at 19:42 UTC |