1. #1
    Ext Premium Member
    Join Date
    Mar 2007
    Posts
    175
    Vote Rating
    0
    SteveEisner is on a distinguished road

      0  

    Default Any way to explicitly set post body with Ajax.request?

    Any way to explicitly set post body with Ajax.request?


    I'm wondering if I can override the "params" serialization and explicitly set the post body in an Ajax.Request. The service I'm trying to call expects to receive a particular format in the post body, unfortunately it always seems to be getting UrlEncoded and thrown into A=B format which breaks the service. Any ideas?
    (The service uses Jayrock for .NET JSON-RPC, and expects the post body to be valid JSON)
    Thanks!
    Steve

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    NL
    Posts
    608
    Vote Rating
    1
    mdissel is on a distinguished road

      0  

    Default


    See this post
    http://extjs.com/forum/showthread.php?t=8501

    (search for Jayrock in the forum to see more posts)

    Thanks
    Marco

  3. #3
    Ext Premium Member
    Join Date
    Mar 2007
    Posts
    175
    Vote Rating
    0
    SteveEisner is on a distinguished road

      0  

    Default


    Thanks! I did see the Jayrock tutorial, but it doesn't appear to be doing the same thing -
    that puts the JSON into the "JSON-RPC" header parameter, while for whatever reason, my Jayrock server (not written by me) is expecting the JSON to be the body of the post. I don't know whether this is just a non-standard way of using Jayrock (maybe they modified the source) but it doesn't accept the method used in your example code

  4. #4
    Ext JS Premium Member
    Join Date
    Mar 2007
    Location
    NL
    Posts
    608
    Vote Rating
    1
    mdissel is on a distinguished road

      0  

    Default


    That's not standard, at least in the current release of JayRock. I've send a patch to accept the params in the body as well.
    see http://developer.berlios.de/patch/?f...&group_id=4638

  5. #5
    Ext Premium Member
    Join Date
    Mar 2007
    Posts
    175
    Vote Rating
    0
    SteveEisner is on a distinguished road

      0  

    Default


    Thanks. It would be much easier to be able to post parameters from a form like that. (Or for that matter, just to use the code you provided to make a legit call via "JSON-RPC: {...}".) Hope I can convince this team to convert their Jayrock server to something more normal, but for the meantime I have just worked around the Ext AJAX call in this particular case. It might be nice to offer the ability to set the body (the various underlying adapters do have the abilitiy, specifically for XML posting, but don't expose it through Ext)

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi