Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
It seems like the target (Bauer Versand) requires JavaScript for the content to be rendered properly. Without JavaScript, you just get the note:
Um Ihnen den Online-Einkauf so angenehm wie möglich zu machen, arbeiten wir mit der neuesten Technik.
Aus diesem Grund sind unsere Seiten für JavaScript-fähige Browser optimiert.
Leider unterstützt Ihr Browser zur Zeit nicht diese Funktion.
Damit auch Sie von den vielen Vorteilen profitieren können, müssen Sie in Ihren Einstellungen die Funktion "JavaScript/ActiveScripting" aktivieren.

In short, it tells you to activate JavaScript.

As for WWW::Mechanize to follow the redirect link, just say

my $mech = WWW::Mechanize->new(); my $response = $mech->get( $url ); $mech->follow_link( n => 1 ); # this is the one in the META tag my $html = $mech->content; ...

Since you use Firefox, you might want to look at JavaScript::SpiderMonkey to evaluate JavaScript. Some time ago, I wrote Re: Handling Javascript with LWP::UserAgent which might serve as an example.


_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

In reply to Re: WWW::Mechanize or WWW::Selenium with server side redirect by shmem
in thread WWW::Mechanize or WWW::Selenium with javascript redirect by tphyahoo

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

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
Domain Nodelet?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2023-06-02 11:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found