in reply to Proper use of HTML::Form for exctracting
2. After clicking enter it should call ex.cgi:<!DOCTYPE html> <html> <head> <title>Title</title> </head> <body> <form name="MyForm" action="/cgi-bin/ex.cgi",method="post",id="f1"> <input type="text" name="textfield"> </form> </body> </html>
When I try it this way , the page shows me : " HTML::Extract=HASH(0x557e1ad591e0)->gethtml('http://192.168.0.104/' ,tagname=body,returntype=text)" I've tried without quotes and without generating a page but then it only shows that it can't be found (error 500); Where is my mistake . Please advice me !#!/usr/bin/perl use strict; use warnings; use HTML::Extract; my $extractor=new HTML::Extract; print "Content-type: text/html\n\n"; print "<html><body>\n"; print"$extractor->gethtml('http://192.168.0.104/' ,tagname=body,return +type=text)<p1>"; print"</html></body>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Proper use of HTML::Extract for extracting
by hippo (Archbishop) on Aug 26, 2018 at 13:41 UTC | |
by bachoA4o (Sexton) on Aug 27, 2018 at 13:00 UTC | |
by poj (Abbot) on Aug 27, 2018 at 14:56 UTC | |
by bachoA4o (Sexton) on Aug 27, 2018 at 15:57 UTC | |
by poj (Abbot) on Aug 27, 2018 at 17:04 UTC | |
| |
by marto (Cardinal) on Aug 27, 2018 at 14:51 UTC |