By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,717 Members | 1,320 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,717 IT Pros & Developers. It's quick & easy.

CURLOPT_HTTPPOST - undefined constant

P: n/a
Hi,

according to php.net, I should use CURLOPT_HTTPPOST to upload a file
with cURL. When I use it I get 'undefined constant'?

My php is compiled with curllib 7.11.2

help anyone?

Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hello,

On 09/23/2004 01:56 AM, Jochen Daum wrote:
according to php.net, I should use CURLOPT_HTTPPOST to upload a file
with cURL. When I use it I get 'undefined constant'?

My php is compiled with curllib 7.11.2


Are you sure that Curl extension is enabled? Are you sure that is the
name of the constant?

Anyway, if that does not work, you may want to try this HTTP client
class that can work without Curl and supports form POST submissions, and
even form file uploading and SSL if needed.

http://www.phpclasses.org/httpclient
--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
Jul 17 '05 #2

P: n/a
Hi,

On Thu, 23 Sep 2004 11:29:36 -0300, Manuel Lemos <ml****@acm.org>
wrote:
Hello,

On 09/23/2004 01:56 AM, Jochen Daum wrote:
according to php.net, I should use CURLOPT_HTTPPOST to upload a file
with cURL. When I use it I get 'undefined constant'?

My php is compiled with curllib 7.11.2
Are you sure that Curl extension is enabled?


I do curl a kinds of stuff, yes.
Are you sure that is the
name of the constant?
It is a name of A constant, haven;t tried it yet. Probably I move the
php version quite a bit forward.
Anyway, if that does not work, you may want to try this HTTP client
class that can work without Curl and supports form POST submissions, and
even form file uploading and SSL if needed.

http://www.phpclasses.org/httpclient


Thanks,

Jochen
--
Jochen Daum - Cabletalk Group Ltd.
PHP DB Edit Toolkit -- PHP scripts for building
database editing interfaces.
http://sourceforge.net/projects/phpdbedittk/
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.