I have a simple code snippet - I am trying to get a WEB page simply to see if it exists - I have tried two separate URL's both of which exist but one returns a uccess code and the second does not. The ebay URL returns success but the therealreal one fail to return a success code. Any help greatly appreciated.
#!/usr/bin/perl use strict; use warnings; use 5.010; use HTTP::Tiny; use LWP::Simple; #This works fine and I get a success response. my $response; $response = HTTP::Tiny->new->get('https://www.ebay.com/itm/13293468937 +0?_trkparms=ispr%3D5&hash=item1ef386625a:g:9aMAAOSwlelcABTQ&amdata=en +c%3AAQAGAAACcPYe5NmHp %252B2JMhMi7yxGiTJkPrKr5t53CooMSQt2orsSHYXPhGXR5uguexJBeHwfgdJ6J58eVuy +chanjrBuo1JP9tlne3ze02hlK%252FFjf05PjtJOLG7lDM%252BxKs%252FjTmZdZ1gyD +gGyRuF45RehkLs7KuyfC %252B3pAeXVl67sjSxlBP0lLY0PHss4j4iGBGRRzexBnH0dJvoIpRkvSe2QChdnf70KZuX +pwlXfeHKeGwiahkPdSbtK38Nw5TolA4S%252BhVaW%252B%252BSa3ZEHC69mI3zuuznY +h9xul0wSdTOQ7COk1j30Nh3M8j3IkCdPYVopDo47ntq4GAn1A %252FnDXrGvvuJW2QEs4MC5%252FeeBSrHNLdzYgczgW1ZdmwkAKpF0NgmaTZKAcBigLXf +5Nw0T0KZHMgTQ44Fs0fKZ9zD2Q4%252BV1OwjQmM8n%252FLINdJR3wm1OQNOVtZdmH5B +MZPiGDM%252BXvQ0ViSvkFoaMQNjcfMbuyL12QV9IMxlLzejVeHznR5ZLxw19dhNiORLo %252FhFGZni5I0xs3WBJNiyg%252BnDwKEj0R9s8JQI1Zqo2VUjUBUCUFMDOUNpS%252Bq +4a5HSPcaPLeOLVnFm%252BiKZWrbmywfE%252Fan6q64guXwhIUP6GT7oq6qDoTOiPF2e +BtLwcN7G5OeR92H0WNfSkLlDm1ux2XETIB9risdL6I %252FXgDmX55FGDq5QxPGnd2tqbrjVhQR5IXo3YpmZ%252BESpbua3iSjzwLCs0Me%252B +512T%252B%252FJ2ebRb2fR8tWhB5EKfM4iNBfDVZbyqLFy7bCnRN2xgC0v27k5Ybntj9 +YoSr9iybiJRATe8INE4nusY%252FiPxtPYBSoRTzQvMiuA%253D%253D%7Cclp%3A2334 +524%7Ctkp %3ABlBMUMjO5uSiXw'); if ($response->{success}) { print 'Success ebay url Length: ', length $response->{content}, " +\n\n"; } else {print 'Failed!!\n'} #This fails and I get a failed response?? $response = get('https://www.therealreal.com/products/women/clothing/j +ackets/chanel-vintage-1991-evening-jacket-bjjd4'); if ($response->{success}) { print 'Success Length: ', length $response->{content}; } else {print 'Failed therealreal.com url !!\n'} exit;

In reply to HTTP:Tiny issue. by gshine

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.