Hello. I'm very new to perl and to LWP especially. I am trying to "getstore" information from a webpage but whenever I do this, the saved file is a 0k and completely blank. When I replace that same line with another website, I end up getting the source for that site. I have already enabled the pretend to be a browser thing $browser->agent("Mozilla/4.76 [en] (Win98; U)"). I think the webpage is thwarting me. What are some next steps to figure out if the webpage is blocking me or if my script is just messed up? The fact that it works for other sites makes me think the webpage is blocking me.

thanks **** THIS HAS BEEN RESOLVED **** thanks everyone!


In reply to Site seems to be blocking my LWP script by dchandler

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.