CURLOPT_HTTPPOST - undefined constant

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jochen Daum

    CURLOPT_HTTPPOST - undefined constant

    Hi,

    according to php.net, I should use CURLOPT_HTTPPOS T 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.
    Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

  • Manuel Lemos

    #2
    Re: CURLOPT_HTTPPOS T - undefined constant

    Hello,

    On 09/23/2004 01:56 AM, Jochen Daum wrote:[color=blue]
    > according to php.net, I should use CURLOPT_HTTPPOS T to upload a file
    > with cURL. When I use it I get 'undefined constant'?
    >
    > My php is compiled with curllib 7.11.2[/color]

    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.




    --

    Regards,
    Manuel Lemos

    PHP Classes - Free ready to use OOP components written in PHP
    Free PHP Classes and Objects 2025 Versions with PHP Example Scripts, PHP Tutorials, Download PHP Scripts, PHP articles, Remote PHP Jobs, Hire PHP Developers, PHP Book Reviews, PHP Language OOP Materials


    PHP Reviews - Reviews of PHP books and other products


    Metastorage - Data object relational mapping layer generator

    Comment

    • Jochen Daum

      #3
      Re: CURLOPT_HTTPPOS T - undefined constant

      Hi,

      On Thu, 23 Sep 2004 11:29:36 -0300, Manuel Lemos <mlemos@acm.org >
      wrote:
      [color=blue]
      >Hello,
      >
      >On 09/23/2004 01:56 AM, Jochen Daum wrote:[color=green]
      >> according to php.net, I should use CURLOPT_HTTPPOS T to upload a file
      >> with cURL. When I use it I get 'undefined constant'?
      >>
      >> My php is compiled with curllib 7.11.2[/color]
      >
      >Are you sure that Curl extension is enabled?[/color]

      I do curl a kinds of stuff, yes.
      [color=blue]
      >Are you sure that is the
      >name of the constant?[/color]

      It is a name of A constant, haven;t tried it yet. Probably I move the
      php version quite a bit forward.[color=blue]
      >
      >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[/color]

      Thanks,

      Jochen
      --
      Jochen Daum - Cabletalk Group Ltd.
      PHP DB Edit Toolkit -- PHP scripts for building
      database editing interfaces.
      Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

      Comment

      Working...