Jump to content


VlexoFree Notice

Interviews will be open every Friday starting at 12am PDT and lasting for 24 hours.

- - - - -

Issue with sending content via AJAX on your server


  • Please log in to reply
3 replies to this topic

#1 timecalc

timecalc

    Newbie

  • Members
  • 3 posts

Posted 22 November 2011 - 03:27 AM

Hi,

As you know in an ajax request data is sent as parameters in the url e.g. page.php?param1=abc&param2=123

I'm having issues sending AJAX content as the server seems to be filtering/blocking it as it's too large, consequently my application fails. I have tested my application on a few webservers and on another web host and it works fine but on vlexofree it fails.

Basically I am sending some really innocuous JSON content via the URL string to a PHP page for processing. Originally I was URI encoding the parameters so the JSON data wouldn't get corrupted in transit. Now I am BASE64 encoding it so it's just a-z, 0-9 characters (even better).

Basically the URL request looks like this:

http://mydomain.tk/p...XJzTWlucyI6IiJ9

I'm guessing something in the XSS security software is blocking it as an attack? Maybe it's too long of a string I don't know. But it works fine on other web hosts so I don't know. Seems like an unnecessary protection if you ask me as it's really limiting what you can do with a web application.

Any ideas what could be going wrong?

Edited by timecalc, 22 November 2011 - 03:28 AM.


Ad Bot


      #2 Eli L

      Eli L

        VlexoFree Owner

      • Owner
      • 6,950 posts
      • LocationWashington, USA

      Posted 22 November 2011 - 01:02 PM

      I increased it to 2,048 characters. That should be more then enough.

      Posted Image


      Please do not PM me for support (unless its a private matter). Instead, post in the appropriate forum and help will be provided accordingly.
      Helpful links: Terms of Service | Privacy Policy | Wiki - Tutorials & Help | VlexoFree Support |


      #3 timecalc

      timecalc

        Newbie

      • Members
      • 3 posts

      Posted 23 November 2011 - 01:47 AM

      Awesome thanks Eli. Got it working now.

      #4 nkorth

      nkorth

        Member

      • Members
      • 11 posts

      Posted 25 January 2012 - 04:47 PM

      You can use POST with ajax, with which the limit is several MB because it's not in the URL.




      0 user(s) are reading this topic

      0 members, 0 guests, 0 anonymous users