Look at the Location header in the response. I see the Location header in my curl -v query.

Never mind - the redirect location is pointing to an error page.

Perhaps lwp (and curl) are not allowed clients? Compare the headers sent to find the differences. Check the ToS on Digi-Key's site, as they may not allow mechanized searches.

You may not use any robot, scraper, spider, or other automated means to access or gather the Content from the Site, or mirror, co-brand, or frame the home page or any other pages of the Site on any other website or web page. For purposes of these Terms of Use, “co-branding” means to display a name, logo, trademark, or other means of attribution or identification of any party in such a manner as is reasonably likely to give a user the impression that such other party has the right to display, publish, or distribute the Site or its Content. Competitors and third party aggregators may not connect "deep links" to the Site, i.e., create links to this site that bypass the home page or other parts of the Site without the written permission of Digi-Key. This prohibition is not intended to restrict the non-commercial activities of individuals.

--MidLifeXis


In reply to Re: Use LWP get no URL response by MidLifeXis
in thread Use LWP get no URL response by hoanglearning

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.