Forum Moderators: open
For instance, this is one of the images that Amazon is serving to my site:
[images.amazon.com...]
(please excuse my use of an external URL - it's intended to illustrate my point)
Is there a way I can catch these? Ping the URL and see if it exists, or if it is a valid image?
I'm doing all this in C#, .NET
And if that's possible, then is there also a way to grab the height and width of that image to insert into my HTML? (I might ask about this in a separate thread)
thanks,
httpwebwitch
HTTP/1.0 200 OK
Server: Apache
Last-Modified: Thu, 01 Jan 1970 00:16:22 GMT
Content-Type: image/gif
X-Pad: avoid browser bug
Content-Length: 807
X-Junk: #*$!xxxxxxx
Date: Thu, 20 Jan 2005 15:38:57 GMT
Connection: keep-alive
When I look at the properties in my browser, it says that the image is a "GIF", which is strange considering the extension is .JPG
When I download that URL, what I get is a 1x1 pixel 256-color GIF.
Maybe the problem is not that the image is 404/broken, but that Amazon is serving duds.
Again, I need to catch these and keep them from being rendered on my web pages. any advice?