Simple AJAX test

2011-03-03 Thread Mohamed Abdel-Aziz Bayoumi
Hello, I was wondering whether someone can post a very simple code demonstrating the use of AJAX within a restlet resource ? (i have made a restlet html page that included javascript code to get me simple text from another restlet that returns just a string representation but that didn't work an

Restlet HANGS

2009-11-16 Thread Mohamed Abdel-Aziz Bayoumi
Hi, Couple of months ago i've developed a restlet applications with many resources and many representations that i can upload files to, process these in way or another and download them when finished. My application worked perfectly for more than five months (and it's been used several times every

Re: Restlet 1.2 M2, Simple, and HTTPS

2009-04-16 Thread Mohamed Abdel-Aziz Bayoumi
Hi MattyJ, I've faced the same problem before using Restlet M1 and i discovered the cause that is i was using Grizzly connector, removing the latter and working with Simple solved my problem. However some of my friends who were facing the same prob, did the opposite to get over it (i.e. they us

Re: Upload to Directory

2009-04-08 Thread Mohamed Abdel-Aziz Bayoumi
Hi Christian, I use the following restlet to save ANY uploaded file with whatever extension or format it is ... hope it worx n solves your problem my friend /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package resources; /** * * @author

Re: CSS and HTTPS problem ...

2009-04-08 Thread Mohamed Abdel-Aziz Bayoumi
Many thanks Rob, i'll consider that .. will give it a try and feedback whenever possible 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 java

Re: CSS and HTTPS problem ...

2009-03-31 Thread Mohamed Abdel-Aziz Bayoumi
the HTML source ... but is it possible your HTML is constructed with an absolute URL (starting with http://) in the CSS 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

CSS and HTTPS problem ...

2009-03-27 Thread Mohamed Abdel-Aziz Bayoumi
Hi All, 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 a

Re: Guarding multiple Resources

2008-12-29 Thread Mohamed Abdel-Aziz Bayoumi
Thanks Stephan, quite simple than i thought ... Restlet RoXX :D Regards StephanKoo wrote: > > Hi Mohamed, > > you have to attach the Router to the Guard, not the resource classses. > > best regards > Stephan > > Mohamed Abdel-Aziz Bayoumi schrieb: >> H

Guarding multiple Resources

2008-12-28 Thread Mohamed Abdel-Aziz Bayoumi
Hi, Is there a way i can use to get the same guard object protecting multiple resources ? i tried using this but without hope @Override public synchronized Restlet createRoot() { Router router = new Router(getContext()); Guard testGuard = new Guard(getContext(), ChallengeSch

RE: Response message before redirection

2008-12-25 Thread Mohamed Abdel-Aziz Bayoumi
lios Technologies ~ Co-founder ~ http://www.noelios.com > > > -Message d'origine- > De : Mohamed Abdel-Aziz Bayoumi [mailto:mohamed@gmail.com] > Envoye : lundi 22 decembre 2008 15:52 > A : discuss@restlet.tigris.org > Objet : Response message before redir

Re: HTTPS File Upload Problem

2008-12-23 Thread Mohamed Abdel-Aziz Bayoumi
. which Connector are you using? (Jetty, Simple, Net...) and > Restlet version? I had some similar problems with Simple once, but I > switched to Jetty and they went away. But Jerome and Thierry use Simple > and > don't seem to have these problems. > > On Tue, Dec 23, 2

Re: SSL in restlet

2008-12-23 Thread Mohamed Abdel-Aziz Bayoumi
Hi vidya vadke, Make sure your keystore file exists at that path C:\Documents and Settings\Admin\.keystore ... anyway for me i use this: Series parameters = server.getContext().getParameters(); parameters.add("sslContextFactory", "com.noelios.restlet.ext.ssl.P

HTTPS File Upload Problem

2008-12-23 Thread Mohamed Abdel-Aziz Bayoumi
Hi Everyone, I'm facing a strange problem !! .. I used to upload files to my Restlet normally when i was using HTTP ... everything was working well till i switched to HTTPS (the saga began) ... When i upload files (same manner, same files with same sizes) sometimes they do upload and many times th

Response message before redirection

2008-12-22 Thread Mohamed Abdel-Aziz Bayoumi
Hello Dear Developers, I'm developing a simple Restlets application that allows users to upload files, which i process then provide them with links to download the output processed files... I'm using a main Restlet that is an HTTP representation including a form for upload and a summary table with

Re: Well HTTPS

2008-12-18 Thread Mohamed Abdel-Aziz Bayoumi
Thanks Ben, Excellent work and documentation ... just what i's seeking now i can run my secured Restlets under HTTPs and further protect these using Basic Authentication you really helped me a lot guys .. Thank you All and keep up the good work.. All the best... John D. Mitchell wrote: >

Basic Authorization and Authentication

2008-12-16 Thread Mohamed Abdel-Aziz Bayoumi
Hi, I'm somewhat new to Restlet and i wanted to know how can i implement basic authentication/authorization in restlets using base64 encoded username and password I'm using HTTPS server listening on a port (with help of Ben ohnson) and it works fine but i needed to implement basic authenticat

RE: Well HTTPS

2008-12-15 Thread Mohamed Abdel-Aziz Bayoumi
Hi Ben, Thanks for your extraordinary post you really helped me out understand a lot about HTTPS ... i just wanted to ask >> what shall i do if i want a client (on a different machine) to access my restlet HTTPS configured Simple web server ?? please i need detailed steps/instructions on how to do