You are here: Re: Curl(): maximum length of POST arguments? « All PHP « IT news, forums, messages
Re: Curl(): maximum length of POST arguments?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация