Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>What data are you trying to grab? Why not just using an existing implementation like <a href="http://search.cpan.org/perldoc/WebService::YouTube" rel="nofollow noreferrer"><code>WebService::YouTube</code></a></p> <p>Some comments on your code: I always avoided the shortcut <code>$ua-&gt;request(GET/POST)</code> method since I always ended up needing more flexibility that only the use of <a href="http://search.cpan.org/perldoc/HTTP::Request" rel="nofollow noreferrer"><code>HTTP::Request</code></a> and <a href="http://search.cpan.org/perldoc/HTTP::Response" rel="nofollow noreferrer"><code>HTTP::Response</code></a> allowed. I always felt the code was cleaner that way too.</p> <p>Why is your code not working? Who knows. Make sure your cookiejar is adding your cookies to the outgoing <a href="http://search.cpan.org/perldoc/HTTP::Request" rel="nofollow noreferrer"><code>HTTP::Request</code></a>. I'd suggest dumping all your headers when you do it in a browser and compare with the headers and data that <a href="http://search.cpan.org/dist/libwww-perl/" rel="nofollow noreferrer"><code>libwww</code></a> is sending. There may be some additional fields that they are checking for that vary for every hit. They may be checking for your <code>UserAgent</code> string. If you are just looking to learn <a href="http://search.cpan.org/dist/libwww-perl/" rel="nofollow noreferrer"><code>libwww</code></a> I'd suggest using a different site as a target as I'm sure YouTube has all sort of anti-scripting hardening.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload