Here is some sample perl code.
For more information maybe try comp.lang.perl.misc on usenet.
# Create a user agent object
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->agent("AgentName/0.1 " . $ua->agent);
# Create a request
my $req = new HTTP::Request POST =>
'http://www.perl.com/cgi-bin/BugGlimpse';
$req->content_type('application/x-www-form-urlencoded');
$req->content('match=www&errors=0');
# Pass request to the user agent and get a response back
my $res = $ua->request($req);
# Check the outcome of the response
if ($res->is_success) {
print $res->content;
} else {
print "Bad luck this time\n";
}
pradeep <[EMAIL PROTECTED]> on 08/25/99 11:22:06 PM
To: [EMAIL PROTECTED]
cc: (bcc: Brendan Johnston/Contractor/CF/CCI)
Subject: A bit off topic
Hi All
Sorry for putting a bit off topic , but hoping to get some help.
I am designing a webpage for which HTML is being generated using CGI
programs
written in PERL. The content for a part of the generated HTML , has to be
fetched from a
database residing on a remote server.The database is protected around by a
set of servlets.
How can I communicate from PERL script with a servlet residing on the
remote
server?
I am new to the web development and into the servlet programming directly.I
do not have any
knowledge in CGI-perl programming.
I wil be very thankful if someone can throw light on the possible solution
??
TIA,
regds
pradeep
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html