Hi bauer1sc

When I run the code above I cannot access www.blankurl.biz, it does not appear to exist. I think it will be difficule to assess the problems you are having with the form without being able to visit the web page...

As far as the stripping of HTML goes, it works fine on Google using the code below:
use strict; use WWW::Mechanize; use HTML::Strip; my($url) = 'http://www.google.co.uk'; my $mech = WWW::Mechanize->new(autocheck =>1); my $hs = HTML::Strip->new(); $mech->agent_alias('Linux Mozilla'); $mech->get($url) or die "Page $url can't be reached"; print "Made it past the url test"; my $page = $mech->content; my $clean_text = $hs->parse( $page ); $hs->eof; print $clean_text;
The output is:
Made it past the url test iGoogle | Sign in Web Images News Maps New! Produc +ts Groups Scholar more » Advanced Search Prefe +rences Language Tools Search: the web pages from the UK Advertis +ing Programmes - Business Solutions - About Google - Go to Google.com + ©2007 Google
Which is the page contents with all the HTML stripped out. What are you expecting?

In reply to Re: Web Spider problem by rpanman
in thread Web Spider problem by bauer1sc

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.