This code *used* to work, but I upgraded YUI to 2.2.2 and it stopped. Clearly something in YUI changed, but I'm not seeing why it's failing.
// javascript sUrl = "/some/controller" postData = "a=1&b=2" var request = Y.util.Connect.asyncRequest ( 'POST', sUrl, callback, postData ); Firebug shows that the data is in fact sent to the server. In my TG app, the controller gets the request, but has no POST data. I inspect the headers in Firebug and see the following: Response Headers Server nginx/0.5.19 Date Fri, 04 May 2007 19:24:09 GMT Content-Type text/html Connection keep-alive Keep-Alive timeout=20 Content-Length 2561 Request Headers Host www.mydomain.com User-Agent Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070417 Fedora/2.0.0.3-4.fc7 Firefox/2.0.0.3 Accept text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language en-us,en;q=0.5 Accept-Encoding gzip,deflate Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive 300 Connection keep-alive Referer http://www.mydomain.com/some/controller/ Content-Length 35 Content-Type application/xml Cookie tg-visit=3e9405030046c43ac71110ae065dd2f8abf53e44 Pragma no-cache Cache-Control no-cache I have a vague notion that perhaps the Content-type (application/xml) header is the culprit (thinking it should be application/x-www-form-urlencoded?), but I'm wondering if that would be enough reason for TurboGears to dump the post data. Regards, Cliff --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

