zend-frameworkzend-http-client

Maximum query length on Zend_Http_Client?


I am using Zend_Http_Client as follows:

$client = new Zend_Http_Client($apiURL);

if (strpos($restriction, 'c') !== false)
{
    $client->setParameterGet(array(
        'channels' => $channels,
    ));
}

$client->setParameterGet(array(
    'limit' => $limit,
    'offset' => $offset,
));

$feed = $client->request()->getBody();

Simple, queries an API with a series of parameters. The problem is the the parameter for 'channels'. This parameter is a comma delimited list if pre-approved channels.

My question is, is there a limit to the size of these parameters? If this channels list gets too long, will I have issues?


Solution

  • The HTTP spec does not specify a limit, and Zend_Http_Client does not artificially enforce one, so no, this shouldn't be an issue.