under governance of SoP, actually, the only work your rpc servlet will
have to do is to rewrite the URLs, here you can develop a logic based
on SoP:
i.e. an iframe may reference foreign sites, img as well, script, too,
etc. define the elements which are not under SoPolicy and you dont
need to rewrite their urls. on the other hand, you way rewrite
everything (except for absolute urls pointing to foreign hosts) and
your additional servlet will just make a pass-through. but then you
have to keep the state of base url, either in cookie or at the server,
to track the original site.
On 28 Nov., 21:50, khalid <khalid....@gmail.com> wrote:
> Hello every one
> I am working on a web-based proxy using GWT (similar to php proxy)
> anyway , the idea is quite simple
> Get the URL from the user , make the server fetch it , change the
> HTML and send it back to the client
> Now I have encountered a problem which is how to send the images back
> to the client?
> I have thought of two possible ways:
> 1-Store them in the server and change their src to MyURL/img.xxx
> 2-Send them back to the client
> The first option will over load the server (I think?!)
> The second option is not possible because as far as I know it is not
> possible to do File IO in the client side , or is it?
> I need your help
> Thank you very much
> ps: I think I will get a similar problem with flash , (e.g. flash
> videos in youtube)
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment