morison20 Posted March 19, 2009 Share Posted March 19, 2009 Hi again, I can send simple data using HTTP POST from a client to PHP server and the data is successfully received. But now when I am sending large amount of data (>4KB) then data is not sent completely and broken. What's wrong? How to overcome this problem? Is this because somehow php server is automatically being closed? Or is this the problem in client side? How can I send complete chunk of data smoothly using POST? Should I use any extra parameters in the header? FYI my HTTP POST header is POST /insert.php HTTP/1.1 Host: www.safecircuit.com Content-Type: application/x-www-form-urlencoded Content-Length: 15 Connection: close data=1234567890 And php code is <?php $str = $_POST['data']; echo $str; ?> Please help me solve this issue. Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/150182-http-post-data-send-incomplete-to-php-script/ Share on other sites More sharing options...
MadTechie Posted March 19, 2009 Share Posted March 19, 2009 Check the following in php.ini post_max_size max_input_time max_execution_time <?php phpinfo(); ?> if you don't have access to the php.ini look into ini_set(); Quote Link to comment https://forums.phpfreaks.com/topic/150182-http-post-data-send-incomplete-to-php-script/#findComment-788716 Share on other sites More sharing options...
Renlok Posted March 19, 2009 Share Posted March 19, 2009 ive had this problem before, i worked around it by creating a bunch of sessions and then you just send the key of the session where the data is stored. Quote Link to comment https://forums.phpfreaks.com/topic/150182-http-post-data-send-incomplete-to-php-script/#findComment-788719 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.