curl-and-php
PHP/CURL : Post 2 xml in multipart/xml...
Date: Thu, 26 Mar 2009 14:15:50 +0100
Hello all
I'm trying to get information, on how to proceed to a post to a web service
of multipart data loaded in a string.
In fact this web service awaits 2 things, a first part that contains an xml
Soap Body, that we have constructed correctly, and that loads our profile
and authorization access.
The second part contains main data XML that will be processed by web
service.
------=_Part_4_12345678.1234567891234
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <132465789132456789>
<?xml version='1.0' encoding='utf-8'?>
..... Main Soap Control XML content....
------=_Part_4_12345678.1234567891234
Content-Type: text/xml; charset=UTF-8
Content-Transfer-Encoding: binary
Content-Id: <file>
..... Main Data XML message in file named frq_information_XXXXX.xml ....
Both XML messages are correctly formatted to respect web service functioning
scheme.
My problem, is how do I assemble this as a multipart message and send it via
cURL..
Thank you for your replies.
Tdldp
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-03-26