curl-and-php
Error sending/receiving XML via curl
From: Bennett <bennett_at_glengroup.com>
Date: Wed, 24 Sep 2003 16:13:23 -0400
Date: Wed, 24 Sep 2003 16:13:23 -0400
Hi,
I'm trying to use curl/php to post to a servlet that receives and
returns xml.
Here's the command line I'm trying:
/usr/bin/curl -m 30 --data-binary $data_to_send http://$host:$port$path
-L
where $data_to_send is a urlencoded xml stream.
and the error I'm receiving is:
Content is not allowed in prolog.
I've ensured that there's absolutely nothing before the "<?xml
version..."
in $data_to_send (hidden or otherwise)
Does anyone have any ideas?
Please help,
TIA
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-09-24