|
Posted by Pedro Graca on 11/22/06 13:17
apinti@gmail.com wrote:
> Here is my code, and the problem:
>
> $st="...(string to post is formed from different variables read from
> file)...";
<snip>
> curl_setopt($ch, CURLOPT_POSTFIELDS, $st);
curl_setopt($ch, CURLOPT_POSTFIELDS, rawurlencode($st));
> $page2=curl_exec($ch);
> curl_close($ch);
> fclose($fp);
>
> Any advice?
urlencode() or rawurlencode() your POSTFIELDS.
http://php.net/urlencode
http://php.net/rawurlencode
--
I (almost) never check the dodgeit address.
If you *really* need to mail me, use the address in the Reply-To
header with a message in *plain* *text* *without* *attachments*.
Navigation:
[Reply to this message]
|