Re: Accepting File Uploads from CURL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/15/06, Brad Bonkoski <bbonkoski@xxxxxxxxxxxxxx> 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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux