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 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]


Удаленная работа для программистов  •  Как заработать на 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

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