I tried to get the source of the page included in the page "http://www.salvasms.it/mostracat.php/" by the iframe:
<iframe frameborder="no" framespacing="0" scrolling="Auto" border ="0" + width=470 height=500 name="principale" src="http://www.salvasms.it/l +egric.php?pag=&dataric=" scrolling="auto">
With firebug i can see the part of the source, but with WWW::Mechanize and WWW::Mechanize::Frames i can't do it!!

This is my script:
#!/usr/bin/perl use strict; use warnings; use Data::Dumper; use WWW::Mechanize::Frames; use HTTP::Cookies; {# ridefinisco la set_cookie, in modo che non cestini i cookie "scadut +i" my $orig=HTTP::Cookies->can('set_cookie'); *HTTP::Cookies::set_cookie=sub { $_[9]=undef; goto $orig; } } my $mech = WWW::Mechanize::Frames->new(); $mech->agent_alias('Linux Mozilla'); my $cookies=HTTP::Cookies->new(ignore_discard=>1); $mech->cookie_jar($cookies); my $url = 'http://www.salvasms.it/entra.php?userid=user&password=s3cre +t'; $mech->get($url); #print 'Url: ',$mech->uri(),"\nCookies: ",Dumper($mech->cookie_jar); my @frames = $mech->get_frames(); #print "Frames: @frames\n"; print $frames[0]->content; #print $mech->content();

Login with my user and password

user: cibbao
password: generale

In reply to How to get iframe source by cibbao

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.