My wordpress plugin sends data as postrequest using WP_HTTP class of wordpress .
$myreq = new WP_Http;
$myres = $myreq->request("url", array('method' => "POST", 'body' => $mydata, 'timeout' => 'some value') );
Above code working fine when data size is small.When data size is large, it is throwing error. How can I know whether the error is just because of large size programatically ? Also what is the remedy? Do I have to ask the user to change his settings so that the required amount of data can be sent as post data ? Or Is there anything that can be done in plugin to allow posting more amount of data ?