| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
Re: cURL -> PHP -> XML
From: Steve Yeazel <syeazel_at_frigidfluidco.com>
Date: Tue, 20 Jul 2004 22:22:19 -0500
just looked this one up and you'll need to be sure your php version is >
curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type:
-----Original Message-----
oh, you'll then need to use CURLOPT_HTTPHEADER to which you can send an
-----Original Message-----
Thanx Steve
I have tryed that but the problem is that I have to set the HEADERS just
Content-type: application/xml
and also the HTTP/1.0 must be set.
At 17:15 20.07.2004 -0500, you wrote:
to post xml just throw it into a variable and send it like this:
$ch = curl_init(); //initiate the curl session
if all goes well then $xmlResult should contain your returned xml
At 04:58 PM 7/20/2004, you wrote:
Hi ppl
I'm quite new to cURL but have used PHP for years now and I got a problem as
I have to send this as a HTTP POST using cURL in PHP:
POST /sms HTTP/1.0
<?xml version="1.0"?>
And I'll get a response looking like this back:
HTTP/1.1 200 Ok
<?xml version="1.0"?>
So they say.
Could someone plz help me to get this together so I can use cURL to send and
the XML part is easy to get together so its the CURL part I need help to
--- Eddy Oreatp Daglig leder +47 924 89 648 OWSS.NOReceived on 2004-07-21 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info