473,385 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

POST data not being sent when sending large strings.

3
My server runs PHP 4.3 and I'm having a problem where when I try to to submit a long string, about 3500+ characters in length, using the post method, the $_POST array node that is supposed to hold that string is dropped for some reason. I don't get any error messages and other $_POST elements return successfully.

I checked my post_max_size and it is at the default 8mb and the string I'm trying to submit is no where near that size obviously.

And when I decrease the size of the string it is returned successfully.

My server runs PHP 4.3

Any help would appreciated
Nov 15 '07 #1
3 1575
mwasif
802 Expert 512MB
Can you post your code?
Nov 15 '07 #2
Jumaro
3
Can you post your code?
The string that I'm trying to post is dynamically generated here it is the firs part is junk just to increase the string size.

Expand|Select|Wrap|Line Numbers
  1. var XMLstrings = '<form><divsize><width>450</width><height>650</height></divsize><text><value>%26lt%3Bh1
  2. %26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt
  3. %3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello
  4. %26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt
  5. %3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr
  6. /%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt
  7. %3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello
  8. %26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt
  9. %3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr
  10. /%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt
  11. %3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello
  12. %26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt
  13. %3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr
  14. /%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt
  15. %3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello
  16. %26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt
  17. %3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr
  18. /%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt
  19. %3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello
  20. %26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt
  21. %3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr
  22. /%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt
  23. %3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello
  24. %26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt
  25. %3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr
  26. /%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt
  27. %3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3Bhello%26lt%3Bbr/%26gt%3B%26lt
  28. %3B/h1%26gt%3B</value><left></left><top></top></text><textbox requirement%3D"yes"><title>Name : </title
  29. ><fieldname>textname</fieldname><left>7</left><top>53</top></textbox> <textbox requirement%3D"yes"><title
  30. >Email : </title><fieldname>textemail</fieldname><left>217</left><top>53</top></textbox><dropdown requirement
  31. %3D"no"><title>Age Group</title><fname>selectage</fname><left>165</left><top>95</top><option><value>
  32. </value><label></label></option><option><value>Less than 18</value><label>Less than 18</label></option
  33. ><option><value>18 -24</value><label>18 -24</label></option><option><value>25 - 30</value><label>25 -
  34.  30</label></option><option><value>31 - 45</value><label>31 - 45</label></option><option><value>more
  35.  than 45 years young</value><label>more than 45 years young</label></option></dropdown> <dropdown requirement
  36. %3D"no"><title>Position :</title><fname>position</fname><left>8</left><top>98</top><option><value></value
  37. ><label></label></option><option><value>Faculty</value><label>Faculty</label></option><option><value
  38. >Staff</value><label>Staff</label></option><option><value>Student</value><label>Student</label></option
  39. ></dropdown><radio requirement%3D"yes"><title>Marital Status</title><fname>radiostatus</fname><left>218
  40. </left><top>136</top><option><value>Single</value><label>Single</label></option><option><value>Divorced
  41. </value><label>Divorced</label></option><option><value>Widowed</value><label>Widowed</label></option
  42. ><option><value>Caged</value><label>Caged</label></option></radio> <radio requirement%3D"no"><title>Ethnicity
  43. </title><fname>ethnicity</fname><left>8</left><top>136</top><option><value>White</value><label>White
  44. </label></option><option><value>African American</value><label>African American</label></option><option
  45. ><value>Native American</value><label>Native American</label></option><option><value>Extra Terrestrial
  46. </value><label>Extra Terrestrial</label></option></radio><checkbox requirement%3D"no"><title>Hobbies
  47. </title><fname>hobbies</fname><left>10</left><top>233</top><option><value>Soccer</value><label>Soccer
  48. </label></option><option><value>Basketball</value><label>Basketball</label></option><option><value>Football
  49. </value><label>Football</label></option><option><value>Baseball</value><label>Baseball</label></option></checkbox> <checkbox requirement%3D"no"><title>Sex</title><fname>sex</fname><left>220</left><top>232
  50. </top><option><value>Male</value><label>Male</label></option><option><value>Female</value><label>Female
  51. </label></option></checkbox><textarea requirement%3D"yes"><title>Comments : </title><fieldname>areacomm </fieldname><left>43</left><top>394</top></textarea> <textarea requirement%3D"no"><title>Other : </title><fieldname>areaother</fieldname><left>80</left><top>513</top></textarea><uploadfile requirement%3D"yes"><title>Photo : </title><fieldname>filephoto</fieldname><left>76</left><top>334</top></uploadfile> <uploadfile requirement%3D"no"><title>other file : </title><fieldname>fileother</fieldname><left>63</left><top>365</top></uploadfile></form>'
  52.  
here I'm using mootool ajax class here to submit the sting, I tried just creating a hidden field with the sting but it didn't work either

Expand|Select|Wrap|Line Numbers
  1.             var thisrequest = new Ajax(yoururl, {
  2.                 method: 'post',
  3.                 data: 'xmltotransform='+XMLstrings,
  4.                 onComplete: creation_msg
  5.             }).request();    
  6.        }
php code in the processing page

[PHP]<?php print_r($POST);?>[/PHP]

and $_POST is empty.
Nov 15 '07 #3
Jumaro
3
I should point out that I am using firebug to depug and shows that it is submitting the full string but there is no response.
Nov 15 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Marc Ederis | last post by:
Hello, I'm having a problem with sending data with sockets over a dial-up connection. When I use the send function, it will happily send a buffer of a megabyte and more in one shot. But of...
4
by: zhimin | last post by:
Hi, I'm writing a program to send large file(100m) through dotnet using TCPListener & TCPClient, I'm sending the file with a ask and response loop: 1. Client send a flag 1 to server indicate it...
4
by: James Johnson | last post by:
Dear C#Dex, I am trying to automate a POST to a web page that clicks a button. I have been able to hit a target web page and run the web page. However, the button on the page does not click. ...
14
by: John J. Hughes II | last post by:
Using the below code I am send multiple sterilized object across an IP port. This works fine if only one object is received at a time but with packing sometimes there is more then one object or...
6
by: jackfoust | last post by:
I'm trying to POST from a form a simple username and password onto another website. Firefox and Opera post the data and results are returned successfully. The site returns "missing user id and...
6
by: Boldgeek | last post by:
I am trying to develop an app that will allow automatic updating of a web form which uses multipart/form-data enctype (as it MIGHT be sending an image) I have an example form, which when...
14
by: FMDeveloper | last post by:
Currently transitioning from a shared host to a dedicated server. The same code that works on the old server is not working on the dedicated server. It is a simple AJAX request like: <code>...
13
by: trpost | last post by:
I am looking for a way to send data from one page to another as POST data without using forms or cURL. I have a php script that is passing a list of cases from on page to another when a link is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.