Jump to content

HTTP POST data send incomplete to php script


morison20

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.