Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Downloading PHP-generated images using the LWP::UserAgent and WWW::Mechanize modules

by bigmacbear (Monk)
on Aug 27, 2007 at 20:30 UTC ( [id://635419]=note: print w/replies, xml ) Need Help??


in reply to Downloading PHP-generated images using the LWP::UserAgent and WWW::Mechanize modules

The URL you cite is only possible if the server is set to provide a script of some sort (you seem to have discovered it's a PHP script already) when the directory http://www.site.com/images/ is requested, and the ?id=345435 part is passed as an argument to the script.

I don't think it's possible to enumerate the directory in this case, you need to know the ID of every image you want -- and the server may be set up so that the ID is different every time that image is to be requested. It's a sneaky way to attempt to prevent people from grabbing copyrighted pictures off a web site or linking to them from their own sites.

  • Comment on Re: Downloading PHP-generated images using the LWP::UserAgent and WWW::Mechanize modules

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://635419]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found