On my webpage I have <img src="//example.com/path/image.jpg" id="foo">
. In my testing environment I'm executing a userscript and I'd like the userscript to get the image (binary, base64 encoded, it doesn't matter) and POST it to http://localhost:1234/debug/
. Later on I may make it more sophisticated and POST the hash but right now I have no idea how to get the image.
I'm not sure if this matters but the image is on my site and I may move it to a static domain.