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

curl-and-php

curl,php4 windows 2000, xml

From: Bennett <bennett_at_glengroup.com>
Date: Mon, 10 Nov 2003 09:59:44 -0500

Hi all,

We're running in to situation where we need to use curl/php to post xml
data on a windows 2000 system. We've verifiied that php and curl are
working on the windows 2000 server but when we try:

<?php
$command = "curl -d \"$xmlFile\" http://<host to post to>";
exec($command,$response);
?>

The host we're trying to post to doesn't accept the $xmlFile. We can do
a curl -i http://<host to post to> successfully so we know the server
is alive and accepting curl commands (or at least the curl -i command).

Also, before putting this code on the windows 2000 server, it was
working on a Linux server. (The same host we're trying to post to
accepted the xml file just fine. The only thing that was different in
the linux environment is that we had to put single quotes around the
$xmlFile).

So, does anyone have any suggestions on how to overcome this?

TIA

-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
Received on 2003-11-10