Re: Accepting File Uploads from CURL
| From: | Rabin Vincent | Date: | Thu, 15 Jun 2006 15:06:24 +0000 |
| Subject: | Re: Accepting File Uploads from CURL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238100@lists.php.net to get a copy of this message | ||
On 6/15/06, Brad Bonkoski <bbonkoski@mediaguide.com> wrote:
Hello All, I am using PERL to generate an XML file from a database query. no problems there. I then try to use curl to send it to an upload script. Essentially the command line looks like this: curl -H 'Content-Type:text/xml' -d file.xml server/up.php for my up.php I am just trying to dump stuff out, like the POST and FILES arrays Both those arrays are empty. Any thoughts on how to debug this, and/or suggestions for handling this?You're using the wrong cURL arguments. You need the "-F" argument. Read the cURL docs. There's also a curl mailing list whose archives you should search. Rabin