Hi Derrell, I don't have experiences width diff, I changed it manually to that: if ($_SERVER["REQUEST_METHOD"] == "POST") { /* * For POST data, the only acceptable content type is application/json. */ switch(substr($_SERVER["CONTENT_TYPE"], 0, strcspn($_SERVER["CONTENT_TYPE"], ";"))) { case "application/json":
this works at least well in FF2, FF3 and IE7. But note the additional ")" at the end. Torsten Derrell Lipman wrote: > > On Wed, Mar 12, 2008 at 6:02 AM, westor <[EMAIL PROTECTED]> wrote: >> >> The hint to test with FF 3 beta was good. This test did not solve my >> problem >> with RPC-JSON-Request but it helped to find out a must have change in >> index.php in backend file. (Hi Derrell ;-) ) >> I analyzed the header, sent from FF 3. The header is not exact >> "application/json" (like in IE and in FF 2) >> it is >> "application/json; charset=UTF-8" >> so the statement >> switch($_SERVER["CONTENT_TYPE"]) >> is not working correct, and every RPC-Request will fail. >> This should be fixed soon. > > Thanks for the report. Would you please try this patch: > > diff --git a/qooxdoo/backend/php/services/index.php > b/qooxdoo/backend/php/services/index.php > index 7f18ad5..c365e14 100644 > --- a/qooxdoo/backend/php/services/index.php > +++ b/qooxdoo/backend/php/services/index.php > @@ -490,7 +490,9 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") > /* > * For POST data, the only acceptable content type is > application/json. > */ > - switch($_SERVER["CONTENT_TYPE"]) > + switch(substr($_SERVER["CONTENT_TYPE"], > + 0, > + strcspn($_SERVER["CONTENT_TYPE"], ";")) > { > case "application/json": > /* We found literal POSTed json-rpc data (we hope) */ > > > I don't have FF3 set up right now, so if you can confirm that this > works with FF3 (and doesn't seem to break FF2/IE) I'll apply it for > you. > > Cheers, > > Derrell > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- View this message in context: http://www.nabble.com/problems-with-qooxdoo-in-html-pages-tp15950612p16005648.html Sent from the qooxdoo-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel