Hello all

I'm encountering a strange problem. i'm using ajax code that sends a JSON'ed
object using port.
here is a snippets :

function ajaxRequest(url, command, handler)
{
...
ichess_info.comm[url].request = new
Ajax.Request(ichess_info.comm.servlet_base + url,
    {
        method: "post",
        contentType: "text/html; charset=UTF-8",
        parameters: Object.toJSON(command),
        onComplete: function(transport) {
        ...

command is the object to be sent
now - only in chrome, there is some data appended to the post body :
and the payled (marked is bold) is appended with some more chars : "*&_="

any idea about the root cause ? i'm currently using server side replace to
overcome it...

Thanks
Ran
head admin
http://www.ichess.co.il

*


   1. Request URL:
   http://localhost:8080/servlets/mainpage
   2. Request Method:
   POST
   3. Status Code:
   200 OK
   4. Request Headers
      1. Accept:
      text/javascript, text/html, application/xml, text/xml, */*
      2. Accept-Charset:
      ISO-8859-1,utf-8;q=0.7,*;q=0.3
      3. Accept-Encoding:
      gzip,deflate,sdch
      4. Accept-Language:
      en-US,en;q=0.8
      5. Connection:
      keep-alive
      6. Content-Length:
      28
      7. Content-type:
      text/html; charset=UTF-8; charset=UTF-8
      8. Cookie:
      
ichess=%7B%22uid%22%3A7%2C%22username%22%3A%22ran%22%2C%22display_name%22%3A%22%D7%A8%D7%9F+%D7%91%D7%A8%D7%A0%D7%A4%D7%9C%D7%93%22%2C%22password%22%3A%22dc43da14c6fc067a3718ba6ccd6ce802%22%2C%22is_admin%22%3Atrue%2C%22lc_no_options%22%3Atrue%2C%22pieces%22%3A%22alpha%22%2C%22board_size%22%3A448%2C%22cchess_move_modal%22%3Atrue%7D;
      JSESSIONID=08B33F0F5D9977488492EB7B24A59F84
      9. Host:
      localhost:8080
      10. Origin:
      http://localhost:8080
      11. Referer:
      http://localhost:8080/
      12. User-Agent:
      Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.13
      (KHTML, like Gecko) Chrome/9.0.597.84 Safari/534.13
      13. X-Prototype-Version:
      1.7_rc3
      14. X-Requested-With:
      XMLHttpRequest
      5. Request Payload
      1. *{"act":"mainpage","rc":0}**&_=*
      6. Response Headers
      1. Cache-Control:
      private, no-store, no-cache, must-revalidate
      post-check=0, pre-check=0
      2. Date:
      Mon, 07 Feb 2011 18:03:42 GMT
      3. Expires:
      -1
      4. Pragma:
      no-cache
      5. Server:
      Apache-Coyote/1.1
      6. Transfer-Encoding:
      chunked
      7. Vary:
      Accept-Encoding

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to