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

curl-and-php

Re: a question about curl and php

From: Dave Withnall <withnall_at_connexus.net.au>
Date: Fri, 28 Feb 2003 16:26:34 +1000

have a look at your post string and make sure its valid.
by the looks of it theres a lot of characters in there that don't look like
they're urlencoded.

At 01:43 PM 27/02/2003 +0100, Zheng Sun wrote:
>$XMLRequest = '<?xml version="1.0" encoding="ISO-8859-1"?>\n';
>$XMLRequest .= '<AddressMessage
>xmlns="http://paymaster.schober.com/AddressMessage">\n';
>$XMLRequest .= ' <Header>\n';
>$XMLRequest .= ' <Activity/>\n';
>$XMLRequest .= ' <ClientId>web-test</ClientId>\n';
>$XMLRequest .= ' <TransactionId>1234-consumer</TransactionId>\n';
>$XMLRequest .= ' </Header>\n';
>$XMLRequest .= ' <Body>\n';
>$XMLRequest .= ' <Address>\n';
>$XMLRequest .= ' <Street>street</Street>\n';
>$XMLRequest .= ' <StreetNumber>9</StreetNumber>\n';
>$XMLRequest .= ' <ZIP>72076</ZIP>\n';
>$XMLRequest .= ' <City>Tuebingen</City>\n';
>$XMLRequest .= ' <Country>DE</Country>\n';
>$XMLRequest .= ' </Address>\n';
>$XMLRequest .= ' <Person>\n';
>$XMLRequest .= ' <FirstName>Manfred</FirstName>\n';
>$XMLRequest .= ' <LastName>Schrems</LastName>\n';
>$XMLRequest .= ' </Person>\n';
>$XMLRequest .= ' </Body>\n';
>$XMLRequest .= '</AddressMessage>\n';
>
>$ServiceId = 'urn:com.schober:paymaster.ConsumerAddressCheck_Tst';
>#$ServiceId = 'urn:com.schober:paymaster.ConsumerAddressValidation_Tst';
>
>$data_string = "ServiceId=".$ServiceId."&XMLRequest=".$XMLRequest;

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2003-02-28