html - Cannot create direct link to image hosted online -


i trying add background image http://wallpaperswide.com/rocky_peak-wallpapers.html website.

the link particular image http://wallpaperswide.com/download/rocky_peak-wallpaper-1920x1080.jpg.

however, if try load image second link, doesn't load. if paste url browser, redirects me first link.

why happen? thanks.

edit

i'm getting answers there http redirect. know can download file , use locally.

however, problem i'm writing script dynamically takes image wallpaperswide.com site , automatically getting image fits person's screen resolution. scan page links , try use links. can't download every image site , have them locally...

any suggestions?

because http://wallpaperswide.com/download/rocky_peak-wallpaper-1920x1080.jpg not image, it's document.

http urls point documents, therefore web server able process , give appropriate result.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -