3 messages in com.googlegroups.google-gearsRe: [google-gears] HttpRequest not se...
FromSent OnAttachments
neyric12 Sep 2007 08:24 
Aaron Boodman12 Sep 2007 09:50 
neyric12 Sep 2007 10:23 
Subject:Re: [google-gears] HttpRequest not sending POST body ?
From:Aaron Boodman (a.@google.com)
Date:09/12/2007 09:50:41 AM
List:com.googlegroups.google-gears

I think it could be because HttpRequest defaults the content type to text/plain. Try setting the right content type, like this:

httpRequest.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

Does this work without setting the header in XmlHttpRequest?

- a

On Sep 12, 2007 8:25 AM, neyric <eric@gmail.com> wrote:

I made a small exemple for my problem using google gears HttpRequest (version 0.2, developer release):

http://www.neyric.com/~neyric/gears_test/test.html

It seems that the "postData" parameters of the HttpRequest.send method is not send within the POST body.

Am I doing something wrong ?

By the way: is there any way we can "see" the request with firebug ?

Thanks.