gwt - Cgi scripts returning data as html/text.. How safe is that? -


When using a post method, it is understandable to return data when a form is submitted. It seems that only html / text can be returned in general ... I use goblins on the client side and it seems that if plain / text is returned then it does not work properly.

Question: How safe is the HTML / text to return all text types using? Is it possible that some data could break gwt or formpanel? Besides, how safe is the return of some Jason format?

I think it is safe to not return binary data in this way. I have not tried.

This depends on the protocol you are using. GWT could use GWT RPC, SOAP, XMLRPC, JSON or almost anything I do not know why it would not be safe to return text / html content types.

Do not use eval () in your JavaScript for JSON, unless it is a server that you trust. Javascript JSON parsers are available which are safer and faster than eval (). It is expected that the original JSON parser support will be included in the next ECMAScript standard.

To send binary data, it may be best that you encode base64.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -