Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Bojan Tesanovic
You should read PHP manual more often it is a bible for us :) http://www.php.net/curl_setopt there is example on that page how to upload files. You need to save data to disk first though, which I guess is not a big deal to do the job On Apr 14, 2008, at 2:47 AM, Aaron Axelsen wrote: T

Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Aaron Axelsen
The problem is that it is a 3rd party API that I am trying to submit data to. I have submitted a request to make the necessary changes for what I'm trying to do. Nathan Nobbe wrote: On Sun, Apr 13, 2008 at 1:07 PM, Aaron Axelsen <[EMAIL PROTECTED]> wrote: Option 2 is what I'm trying to

Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Nathan Nobbe
On Sun, Apr 13, 2008 at 1:07 PM, Aaron Axelsen <[EMAIL PROTECTED]> wrote: > Option 2 is what I'm trying to do, but the problem is that when curl > sends the file over the command line, when it's processes via PHP the > attached file comes over $_FILES. > im lost here. in option 2 from Bojan's po

Re: [PHP] Send XML file with curl functions

2008-04-13 Thread Aaron Axelsen
Option 2 is what I'm trying to do, but the problem is that when curl sends the file over the command line, when it's processes via PHP the attached file comes over $_FILES. But, added the postdata obviously doesn't allow it to come over that way. Is there any way to use option 2 and transmit the

Re: [PHP] Send XML file with curl functions

2008-04-12 Thread Bojan Tesanovic
On Apr 12, 2008, at 11:37 PM, Aaron Axelsen wrote: I am trying to create the following command with the php curl functions: curl -F "[EMAIL PROTECTED]" "http://path/to/api"; The problem i'm having is that i'm creating the xml file with php - so the contents are stored in a variable. How