cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

CURL running form PHP exec() problem!

From: James Lu <fluzj_at_21cn.com>
Date: Thu, 7 Apr 2005 10:55:11 +0800

Hello all!

platform: RHEL4(PHP 4.3.9 Curl 7.12.1)

I want to post file through form use CURL like this

/usr/bin/curl -k -s -S --connect-timeout 5 -F "interface=xxx" -F "option=xxx" -F "upload=@/tmp/upload" https://localhost:3444/upload.cgi

in 3th -F option ,I want to upload the /tmp/upload file,so i used the @ sign.when I run it in the command console,anything is OK! But when I Call it from PHP's exec(),it do nothing and return value is not 0 but 26,when i drop the @ sige ,it can work ,but just the content of"/tmp/upload". Idon't know the reason, PHP or Curl problem? thanks
        

    
                                 

        James Lu
        fluzj_at_21cn.com
          2005-04-07
Received on 2005-04-07