You'd have to change the CSS to also reference the images, etc. over https.
 The warning you describe will be triggered whenever you have an HTML page,
delivered over https, that calls images, CSS, or javascript from another
source, delivered over http.  This isn't a Restlet thing ... it applies to
any SSL Web server.
However, one neat Restlet thing that does help, is the Redirector feature.
 This is a bit advanced, but you can use the Redirector on your local web
service to proxy these requests to the other server; this can be used to
avoid such warnings and single-source issues, at the expense of some
overhead in your web service and a responsibility to manage the security
appropriately.

- Rob

On Tue, Mar 31, 2009 at 5:34 AM, Mohamed Abdel-Aziz Bayoumi <
mohamed....@gmail.com> wrote:

> Hi Rob,
>
> Thanx for the fast reply ... As it told you Rob i'm using absolute links to
> images or css (since these are not hosted on my server) like the following
> CSS snippet (the background property)
>                thead th,tbody th
>                {
>                   background : #FFF url(
> http://muffinresearch.co.uk/code/xhtmlandcss/tableshow/th_bck.gif)
> repeat-x;
>                   color: white;
>                   padding : 5px 10px;
>                   border-left : 1px solid #CCC;
>               }
> another important note: i've switched to HTTP instead of HTTPS just to test
> and the style was displayed perfectly (no broken images or missing css
> files) both locally and remotely (i didn't change anything in code) which
> makes me 100% that the problem is mainly considered with HTTPS connection as
> i told you before ...
>
> Thank you
>
>
> Hard to diagnose without seeing the HTML source ... but is it possible your
> HTML is constructed with an absolute URL (starting with http://) in the
> CSS
> <link rel.../> tag?  Any snippets of the HTML you can share, or a link to a
> page if it's public?
>
> On Fri, Mar 27, 2009 at 10:46 AM, Mohamed Abdel-Aziz Bayoumi <
> mohamed....@gmail.com> wrote:
>
> > It's been a long time since i posted here ... hope u r all fine n well ..
> > Now my problem.  I've planned to add some style to one of my restlet
> (which
> > is actually a TEXT_HTML MediaType repreaentation) so i made an external
> > stylesheet n saved my .css file and linked it to my html restlet and
> began
> > to test n here u r what i found (note: i'm running the whole application
> via
> > secured HTTPS):
> >
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1445199
>
>
> --
> View this message in context:
> http://n2.nabble.com/CSS-and-HTTPS-problem-...-tp2544622p2562022.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>
> ------------------------------------------------------
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1493998
>

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1498463

Reply via email to