cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: I lost my double quotes!

From: Ralph Mitchell <rmitchell_at_eds.com>
Date: Thu, 19 Sep 2002 20:02:49 -0500

You probably need to escape the double-quotes in $data. Exec calls
generally kick off /bin/sh to run the command, and that will be eating
your quotes.

    i.e. <?xml version=\"1.0\" encoding....etc

possibly even \\ in case PHP takes one out.

Ralph Mitchell

John Eagle wrote:

> I send this command via PHP:
> exec ("$curl -d $data --header 'Content-Type:
> text/xml' $host ", $return_string);
>
> I am sending in $data somthing like:
> <?xml version="1.0" encoding="iso-8859-1"?>etc.
> but the server sees:
> <?xml version=1.0 encoding=iso-8859-1?>etc..
>
> In other words I seem to have lost the "".
>
> Any ideas?
>
> Thanks John
>
> __________________________________________________
> Do you Yahoo!?
> New DSL Internet Access from SBC & Yahoo!
> http://sbc.yahoo.com
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-09-20