hey guys,
do you think this should be posted as a bug?  The method
jQuery.get(...),  within the jquery library (1.2.1) sometimes sets
data to null.

I've only noticed the behavior in firefox with nginx as the server (it
boots that request right quick!).

Thanks,
Adam

On Nov 13, 10:25 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Yup.  We started actually sending information in the data hash, and
> things have worked well that way.  That's what I get for misusing post
> requests.
>
> On Nov 9, 5:01 pm, noriaki <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > > Doing some curls, I was able to send a post successfully the server by
> > > setting 'Content-Length: 0' as an additional header on the request.  I
> > > don't see an obvious way to set additional headers using jQuery.ajax,
> > > though.  Has anybody else run into this issue before?
>
> > I don't know a way to set 'Content-Length' header using jQuery.ajax. But,
> > I may be able to give you some advice that'll help you solve '411' issue.
> > So, set a 'data' parameter when jQuery.ajax call.
>
> > for example,
> >   $.ajax({
> >     url: url,
> >     type: 'POST',
> >     data: {},    //  <- set empty data
> >     success: function(data, textStatus) {
> >       // do something
> >     }
> >   });
>
> > I'm using Rails + jQuery too, that served on Mongrel or Lighty.
> > When using Lighty, led to this issue.
>
> > I hope this helps.
>
> > On Nov 7, 2007 4:37 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > > We're using Rails + jQuery for our xmlHTTPRequests, served up on
> > > nginx.
>
> > > When making a jQuery.ajax type:'POST', the reponse is:  HTTP/1.1 411
> > > Length Required
>
> > > Doing some curls, I was able to send a post successfully the server by
> > > setting 'Content-Length: 0' as an additional header on the request.  I
> > > don't see an obvious way to set additional headers using jQuery.ajax,
> > > though.  Has anybody else run into this issue before?
>
> > --
> > --- We Ain't Seen Nothin' Yet.
> > 内山 紀明 (Noriaki UCHIYAMA)
> > [EMAIL PROTECTED]
> > blog:http://blog.fulltext-search.biz/
> > twitter:http://twitter.com/noriaki

Reply via email to