<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Julian Fitzell escreveu:
<blockquote
cite="mid:4a5dbd430809200739g4fceecbfxe3b8b349680d9a45@mail.gmail.com"
type="cite">
<pre wrap="">On Sat, Sep 20, 2008 at 3:25 PM, Philippe Marschall
<a class="moz-txt-link-rfc2396E" href="mailto:philippe.marschall@gmail.com"><philippe.marschall@gmail.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">2008/9/19 agnaldo4j <a class="moz-txt-link-rfc2396E" href="mailto:agnaldo4j@gmail.com"><agnaldo4j@gmail.com></a>:
</pre>
<blockquote type="cite">
<pre wrap="">Sorry, my english is very limited.
I use seaside with squeak 3.9.
I have a desktop application developed in java, this desktop application
send a gzip stream to server(seaside) and receive from the server a gzip
stream.
</pre>
</blockquote>
<pre wrap="">This doesn't sound very Seaside specific. Seaside only works over
http(s), it's a web framework. It looks more like you need a generic
Squeak/Smalltalk server.
</pre>
</blockquote>
<pre wrap=""><!---->
I'm not certain but is the question just about using GZIP content
compression for the HTTP stream?
Julian
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
</blockquote>
Correct Julian, is this. <br>
My request and response are in gzip mode, but in seside i don't
undarstand how todo this.<br>
A example in Ruby on Rails:<br>
class TesteController < ApplicationController<br>
protect_from_forgery :except => [:teste]<br>
<br>
require 'zlib'<br>
<br>
def teste<br>
gz = Zlib::GzipReader.new(request.body) <br>
puts gz.read<br>
<br>
render :json => {:nome => "Agnaldo de Oliveira"}.to_json<br>
<br>
StringIO.open('', 'w') do |strio|<br>
gw = Zlib::GzipWriter.new(strio)<br>
gw.write(response.body)<br>
response.body = strio.string<br>
gw.close()<br>
end<br>
end<br>
end<br>
<br>
</body>
</html>