Re: [WebDNA] Mixed Content

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103683
interpreted = N
texte = You could get a batch file to write all images to your server once in a while [text]host=farm1.static.flickr.com[/text][text]path_to_jpg=/ 191/445394673_a9b3a4302a.jpg[/text][tcpconnect host=[host]] [writefile file=test.jpg][tcpsend skipheader=T]GET /[path_to_jpg] HTTP/ 1.0[unurl]%0D%0A[/unurl][!] [/!]Host: [host][unurl]%0D%0A%0D%0A[/unurl][!] [/!][/tcpsend][/writefile] [/tcpconnect] Then serve images locally. Or use the above to write images sporadically when users see images ie call your image like so: then, in your image folder, create an error.txt file that has the above webdna code in it (probably best to wrap it in a [hideif [fileinfo [path_to_image]][exists][/fileinfo]=T]) You could the stick a waitforfile around all of above and finish off with a redirect to the new image, or a returnraw to include image, what ever you fancy. However, by far the best option would be to get your provider to get an SSL certificate and just stick https in front of image paths on that page... When google analytics weren't offering the SSL solution, I just stuck an s on the end of their http and it worked like a charm. Obviously I checked before deploying to live server, but it's worth a shot in the first instance... Good luck TC > I have a database of products and another database of URLs to > product images. The product images are provided by a third party > and only accessable via the url link they provide. (http://www.provider.com/sample.jpg > ) > > I am able to cross reference the two and get these product images to > display fine with my products database in standard non-secure > webpages (http). The problem is some portions of my website are > delivered via https and in these cases the user gets a warning > message that the webpage contains non-secure content (the product > images that are loaded from the third party server via http). The > images that are provided by the third party are not accessable via > https. > > Does anyone have any suggestion for fixing this so the message does > not appear or a way of perhaps retrieving the image first and saving > it to the local server. There are usually 50 products displayed at > a time, so I would really like for the solution to not slow things > down if possible. > > Thanks, > Mark > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 Associated Messages, from the most recent to the oldest:

    
  1. RE: [WebDNA] Mixed Content (Mark Bergkvist 2009)
  2. Re: [WebDNA] Mixed Content (Stuart Tremain 2009)
  3. Re: [WebDNA] Mixed Content (Toby Cox 2009)
  4. [WebDNA] Mixed Content (Mark Bergkvist 2009)
You could get a batch file to write all images to your server once in a while [text]host=farm1.static.flickr.com[/text][text]path_to_jpg=/ 191/445394673_a9b3a4302a.jpg[/text][tcpconnect host=[host]] [writefile file=test.jpg][tcpsend skipheader=T]GET /[path_to_jpg] HTTP/ 1.0[unurl]%0D%0A[/unurl][!] [/!]Host: [host][unurl]%0D%0A%0D%0A[/unurl][!] [/!][/tcpsend][/writefile] [/tcpconnect] Then serve images locally. Or use the above to write images sporadically when users see images ie call your image like so: then, in your image folder, create an error.txt file that has the above webdna code in it (probably best to wrap it in a [hideif [fileinfo [path_to_image]][exists][/fileinfo]=T]) You could the stick a waitforfile around all of above and finish off with a redirect to the new image, or a returnraw to include image, what ever you fancy. However, by far the best option would be to get your provider to get an SSL certificate and just stick https in front of image paths on that page... When google analytics weren't offering the SSL solution, I just stuck an s on the end of their http and it worked like a charm. Obviously I checked before deploying to live server, but it's worth a shot in the first instance... Good luck TC > I have a database of products and another database of URLs to > product images. The product images are provided by a third party > and only accessable via the url link they provide. (http://www.provider.com/sample.jpg > ) > > I am able to cross reference the two and get these product images to > display fine with my products database in standard non-secure > webpages (http). The problem is some portions of my website are > delivered via https and in these cases the user gets a warning > message that the webpage contains non-secure content (the product > images that are loaded from the third party server via http). The > images that are provided by the third party are not accessable via > https. > > Does anyone have any suggestion for fixing this so the message does > not appear or a way of perhaps retrieving the image first and saving > it to the local server. There are usually 50 products displayed at > a time, so I would really like for the solution to not slow things > down if possible. > > Thanks, > Mark > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: http://forum.webdna.us/eucabb.html?page=topics&category=288 Toby Cox

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

form data submission gets truncated (1997) Colors (2000) More on the email templates (1997) WebCat2: Items xx to xx shown, etc. (1997) Multiple prices (1997) F3 crashing server (1997) webcat error log (1998) Plugin or CGI or both (1997) PR BOO BOO: Announcing general availabilty of WebDNA 4.5release (2002) bug in [SendMail] (1997) No answers by SM? (2000) WebCatalog dying in WebTen Revisited (1998) What does this error mean? (2000) Displaying photo attached to first record (1997) Showif, Hideif reverse logic ? (1997) Odd linefeed problem (2003) Math with Time (1997) Putting a page between checkout and invoice (1999) problems with 2 tags shakur (1997) OLD PROBLEM (1997)