Question: i'm trying to save an image from a website using selenium server & python client.
i know the image's URL, but i can't find the code to save it, either when it's the the document itself, or when it's embedded in the current browser session.

the workaround i found so far is to save the page's screenshot (there are 2 selenium methods for doing just that), but i want the original image.

i don't mind fiddling with the clicking menu options etc. but i couldn't found how.

thanks

Answer: 
To do this the way you want (to actually capture the content sent down to the browser) you'd need to modify Selenium RC's proxy code (see ProxyHandler.java) and store the files locally on the disk in parallel to sending the response back to the browser.
I haven't used selenium, but if you know the image's URL, why not just do:

```
from urllib import urlretrieve

urlretrieve(url, filename)

```

which will save the url to the filename.
more info [here](http://docs.python.org/library/urllib.html#urllib.urlretrieve)