|
Posted by Andy Hassall on 07/01/06 11:51
On Sat, 01 Jul 2006 11:21:10 +0100, Bonge Boo! <bingbong@spamcop.net> wrote:
>I'm trying to query a form using curl, so that I can manipulate the data it
>returns before pushing it to the browser.
>
>If I just use a normal POST form it work fine. However if I use curl() then
>the script gives an error. One things that springs to mind is the length of
>the POST data. Its really long. So long if I try to use file_get_contents()
>it complains.
What's the error?
>Is there any restriction on how long the CURLOPT_POSTFIELDS can be?
>
>curl_setopt($ch, CURLOPT_POSTFIELDS, urlencode($query));
Shouldn't be in cURL, but you could well be hitting PHP memory limits. How big
is $query?
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Navigation:
[Reply to this message]
|