You are here: Re: blank response from curl when posting form data « PHP Programming Language « IT news, forums, messages
Re: blank response from curl when posting form data

Posted by apinti on 11/23/06 06:34

I forgot to mention: they are properly encoded with urlencode. I
checked against Firefox headers. As soon as I make those strings small,
under 800 characters, everything works. This is checked against several
webhosts too: Godaddy, Bluehost, Network Solutions, and my own server,
all return the same error:

cURL ERROR #56: Received problem 2 in the chunky parser at 186 in
/home/public_html/poster.php
I have this at line 186:
if(curl_errno($ch) > 0) echo "<p style='color: red'><b>cURL ERROR
#".curl_errno($ch).": ".curl_error($ch)." at ".__LINE__." in
".__FILE__."</b></p>";

If I take that line out, I get a blank response from the Post.
It only works without a hitch on Marblehost. So I'm thinking it may be
a config issue, but I need a way to make it work on my computer. This
is rather intriguing. I tried passing the post data in strings, arrays
and directly with the same result. I have also tried passing it a file,
which, I read, handles buffering better (doing that I'm returned the
blank form again, which I initially get on the previous step with a
simple curl call to that url without a post), but I am not sure I did
file passing correctly. Any example on how to do this correctly, as
well as any other advice would be really appreciated.

 

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

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