Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 56341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:31:10+00:00 2026-05-10T17:31:10+00:00

Is there a documented max to the length of the string data you can

  • 0

Is there a documented max to the length of the string data you can use in the send method of an XMLHttpRequest for the major browser implementations?

I am running into an issue with a JavaScript XMLHttpRequest Post failing in FireFox 3 when the data is over approx 3k. I was assuming the Post would behave the same as a conventional Form Post.

The W3C docs mention the data param of the send method is a DOMString but I am not sure how the major browsers implement that.

Here is a simplified version of my JavaScript, if bigText is over about 3k it fails, otherwise it works…

var xhReq = createXMLHttpRequest();  function createXMLHttpRequest() {   try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch (e) {}   try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch (e) {}   try { return new XMLHttpRequest(); } catch(e) {}   alert('XMLHttpRequest not supported');   return null; }  function mySubmit(id, bigText) {   var url    = 'SubmitPost.cfm';   var params = 'id=' + id + '&bigtext=' + encodeURI(bigText);    xhReq.open('POST', url, true);    //Send the header information along with the request   xhReq.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');   xhReq.setRequestHeader('Content-length', params.length);   xhReq.setRequestHeader('Connection', 'close');    xhReq.onreadystatechange = onPostSubmit;   xhReq.send(params); }  function onPostSubmit() {    if (xhReq.readyState==4 || xhReq.readyState=='complete')      {       if (xhReq.status != 200)         {         alert('BadStatus');         return;         }     }  } 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T17:31:10+00:00Added an answer on May 10, 2026 at 5:31 pm

    I believe the maximum length depends not only on the browser, but also on the web server. For example, the Apache HTTP server has a LimitRequestBody directive which allows anywhere from 0 bytes to 2GB worth of data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 65k
  • Answers 65k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Don't know of any videos or screencast, but my answer… May 11, 2026 at 11:12 am
  • added an answer Cheat. Expose this process as another WCF service and fire… May 11, 2026 at 11:12 am
  • added an answer I don't know what is available in PL/SQL, but T-SQL… May 11, 2026 at 11:12 am

Related Questions

Is there a documented max to the length of the string data you can
Continuing from my previous question , is there a comprehensive document that lists all
Is there a function like document.getElementById(FirstDiv).clear() ?
Is there a parser/library which is able to read an HTML document into a
Is there a way to access the DOM of the document in an iframe
Is there a PHP class/library that would allow me to query an XHTML document
Is there a way to use Zend_Search_Lucene to search/index PDF documents?
Is there any way to save the state of vim settings with a document?
I am generating a document from HTML. Is there any way to force the
How can I include a bookmarklet in a Markdown parsed document? Is there any

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.