in reply to Re: getstore protected image
in thread getstore protected image

I mean I can't copy and paste the URL of the image and get it.

Are you saying I could get the image off the page and toss in a fake HTTP_REFERER while I call another get on the image and it might fake it?

Any example how to do that?

Replies are listed 'Best First'.
Re^3: getstore protected image
by jpeg (Chaplain) on Mar 31, 2006 at 23:53 UTC
    I mean:

    - GET the original html page containing img links
    - build an array of URLs for the images
    - for each image URL, use LWP to GET the image. In this step, you'll need to change the referer to the URL of the original page.

    See perldoc LWP and perldoc HTTP::Headers. When you use LWP you create an LWP::UserAgent object, and you can pass an HTTP::Headers object to the LWP::UserAgent's get() method. Populate the HTTP::Headers object with... headers, including 'referer' => $originalURL.

    --
    jpg