Jump to content

Recommended Posts

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.