473,473 Members | 1,994 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

CURLOPT_HTTPPOST - undefined constant

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
2 4105
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Phil Powell | last post by:
class NicknameVerifier { function NicknameVerifier() {} function isValid() { if ($fileID) { $content = fread($fileID, HTMLRetriever::MAX_URL_SIZE); fclose($fileID); if ($content)...
1
by: D. Alvarado | last post by:
Hello, Ia m running PHP 4 on Fedora Linus Apache 1.27. Since I have a dev box, I would like warnings to appear in the event of undefined variables or constants. But although I specified this...
6
by: Wayne Wengert | last post by:
I have an ASP page in which I reference quite a few ADO constants such as adOpenStatic, adLockReadOnly and they work fine but a reference to adUseServer comes up as undefined? I have a typelib...
4
by: Kees Hoogendijk | last post by:
Hi everyone, Actually I dont know how te explein this, that's why I paste my code below. I've a main en I've a few header files. After I include the headers, the compiler shows the errors as...
3
by: bp | last post by:
Hi, Could someone to tell me what I'm doing wrong? I'm using gcc version 3.3.4 and ld version 2.15.90.0.3 20040415 the linker message is: .../obj/classOpenAreaForm.o(.text+0x211): In...
6
by: Simon Bailey | last post by:
In the following code at the end of the program z = 20 & y = 99. void doit(const int* x) { int* nonconst; nonconst = const_cast<int*>(x); *nonconst = 99; } int main(int argc, char* argv)
6
by: mark_galeck_spam_magnet | last post by:
Hello, K&R say about the constant expression after #if: "The resulting constant expression is restricted: it must be integral (...)" Clearly, the expression 1 < FOO if FOO is undefined, is...
16
by: Francois Grieu | last post by:
Hello, does the expression (0x41u*0x201)&0x7FFF yield the well defined value 0x0241, or is the behaviour undefined? In other words: what's the type of the product on an unsigned by an int,...
8
by: want.to.be.professer | last post by:
#include <iostream> using namespace std; // Check if N is constant template <int N> class ValidateConstInt{}; int main() { const int constValue = 12;
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.