|
Posted by apinti on 11/23/06 06:44
I forgot to mention: they are properly encoded with urlencode. I
checked against Firefox headers. The POSTFILEDS string is formed like
this
$st="field1=$var1&field2=$var2&field3=$var3...";
some 8 fields in all. The appropriate variables are already urlencoded
at this point. The thing, is I have to post the 10k text area content,
and here's where the hiccup occurs. As soon
as I make that string small, 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.
[Back to original message]
|