| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-and-php mailing list Archives
RE: PHP/CURL : Post 2 xml in multipart/xml...
From: <no-return_at_cardiff.fr>
Date: Fri, 27 Mar 2009 06:56:08 +0100
Follow - up :
I managed to post multipart to my webservice,
For those searching here is code :
$this->headers[] = 'Accept: */*';
$this->headers[] = 'Connection: Keep-Alive';
$this->headers[] = 'Content-Type: multipart/related; charset=utf-8';
curl_setopt($process, CURLOPT_HTTPHEADER,
$Xpost_data['body']='@/home//www/curl/'.$data;
$Xpost_data['fichier']='@/home/www/curl/'.$fichier_xml;
curl_setopt($process, CURLOPT_POST, 1);
curl_setopt($process, CURLOPT_POSTFIELDS,
Watch out, order curl_setopt matters.. it is this that was sending to
but now I am getting a 500 error from the server. I think post format is not
Here is verbose log :
> POST /services/Service HTTP/1.1
User-Agent: WORKSHOP/AGENT
Host: [confidential]
Accept-Encoding: gzip
Accept: */*
Connection: Keep-Alive
SOAPAction: SoapCall
Content-Length: 34646
Expect: 100-continue
Content-Type: multipart/related; charset=utf-8;
< HTTP/1.1 100 Continue
* The requested URL returned error: 500
* Closing connection #0
I'm wondering if that Content-Type sending after Expect: 100-continue, is
I suppose webservice is awaiting HTTP 100 continue signal that it hasn't
Any ideas on how to solve this ??? Or am I making wrong direction, and what
Tdldp
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info