Wednesday, March 30, 2011

Re: gwt rpc: reducing http headers overhead

Hello Michele and Mike,

Thanks for the vote of confidence :-)
I'm afraid you can't do much there - most of the headers are set by
the browser and cannot be removed (you may want to try to hack
XmlHttpRequest in the xhr package). I was able to remove only the user-
agent header.

While you may remove the x-gwt-* headers, your backend will complain
if you are using a serialization policy (which is the standard).

On Mar 30, 10:06 am, Jambi <michael.lukaszc...@googlemail.com> wrote:
> Hey Michele,
>
> maybe this thread will help:
>
> http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> cheers, Mike
>
> On 30 Mrz., 09:55, Michele Rossi <michele.ro...@gmail.com> wrote:
>
> > Hi,
> > is there any way to configure the GWT RPC mechanism to send out fewer HTTP
> > headers with requests?
>
> > In my case the headers account for far more traffic than the RPC request
> > payload.
>
> > Many thanks,
> > Michele
>
> > POSThttp://192.168.151.88:8888/marketmon/ServiceResolver.gwtrpcHTTP/1.1
> > Accept: */*
> > Accept-Language: en-gb
> > x-gwt-module-base:http://192.168.151.88:8888/marketmon/
> > Content-Type: text/x-gwt-rpc; charset=utf-8
> > x-gwt-permutation: 4F83005C396622954467A089562854DF
> > Referer:http://192.168.151.88:8888/marketmon/IonWeb.html
> > UA-CPU: x86
> > Accept-Encoding: gzip, deflate
> > User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
> > 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729;
> > InfoPath.1; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C;
> > .NET4.0E)
> > Host: 192.168.151.88:8888
> > Content-Length: 200
> > Connection: Keep-Alive
> > Pragma: no-cache
> > Cookie: JSESSIONID=niz2rzplwvrv
>
> > 7|0|5|http://192.168.151.88:8888/marketmon/|679695836251D111D4E029BE7F29A022|com.myservices.services.remoteservices.HeartbeatService|heartbeat|java.lang.Integer/3438268394|1|2|3|4|1|5|5|-1|

--
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