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

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

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

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; /** * *

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

Re: CSS and HTTPS problem ...

2009-03-31 Thread Mohamed Abdel-Aziz Bayoumi
... 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

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

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: Hi, Is there a way i can use to get the same

RE: Response message before redirection

2008-12-25 Thread Mohamed Abdel-Aziz Bayoumi
-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 redirection Hello Dear Developers, I'm developing a simple Restlets application that allows users to upload

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

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: SeriesParameter parameters = server.getContext().getParameters(); parameters.add(sslContextFactory,

Re: HTTPS File Upload Problem

2008-12-23 Thread Mohamed Abdel-Aziz Bayoumi
? (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, 2008 at 2:56 AM, Mohamed Abdel-Aziz Bayoumi mohamed@gmail.com

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

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

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