473,775 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

POST data not being sent when sending large strings.

3 New Member
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 1585
mwasif
802 Recognized Expert Contributor
Can you post your code?
Nov 15 '07 #2
Jumaro
3 New Member
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 New Member
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
2305
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 course, the data is still in the network buffer... Meaning you can't disconnect for awhile (but for how long...). The problem is, how can I know when it's done? Is there a way to be notified when the data has truly been sent? I tried using...
4
8075
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 has data send to server. 2. Client send the buffer block size. 3. Client send the actual buffer to the server. 4. Server send a flag 1 to client indicating that the buffer has been successfully receeived. 5. The next loop until all data of the...
4
3157
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. I can set the target web page to change to a new URL when I hit it, and that works, but I cannot get the button to click based on my POST command. Is there some secret to clicking the button? I have a button named btnGo and I set the value of...
14
2276
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 half an object in the received data. If I place the data in a memory stream on the received side is there a way to determine where one ends and the next one start? Since the deserializer stream seems to move the pointer I am trying to look at the...
6
2915
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 password" when using the same form in Internet Explorer. This form works fine as a GET, but I want to avoid this route. The site I'm posting to is fairly closed and I'm not sure if I can get at the perl/c/whatever they are using to check out the...
6
32818
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 submitted displays the results as you would expect. However when I send the same data using the PHP script I get a 400 error: Bad Request
14
10018
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> function createXMLHttpRequest() { if (window.ActiveXObject) { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); } else if (window.XMLHttpRequest) {
13
5117
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 clicked. This is working fine for the most part as a link, but sometimes the list gets very large and gets cut off. The reason it gets cut off appears to be a limitation on the amount of data that can be passesd in the URI. It looks like I can...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10107
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10048
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7464
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6718
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5360
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5486
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4017
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2853
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.